Essay sample library > MemorySnapshot

MemorySnapshot

2023-10-15 00:22:21

MemorySnapshot and UnityEditor.MemoryProfiler. All types of * are experimental APIs and may change greatly in the future. Currently only il 2 cpp based players can offer memory snapshots. Editors and monaural players do not respond to new snapshot requests

Request a new snapshot from the Analyzer's current connection. The script backend of IL2CPP and Mono .NET 5 supports memory snapshots. Note: Each snapshot consists of approximately one managed object for each managed object. The snapshot taken from the editor contains all previous snapshot objects not garbage collected. As a result, duplicate snapshots in the editor may grow exponentially. If you do not need an old snapshot, we recommend that you call GC.Collect () with all references canceled before referring to it.