Documentation

Unity Engine

Download Unity

Unity Engine

RequestNewSnapshot()

Requests a new snapshot from the currently connected target of the Profiler.
Read time 1 minuteLast updated 17 days ago

Definition

Warning
Deprecated. Use Unity.Profiling.Memory.MemoryProfiler.TakeSnapshot() instead
public static void RequestNewSnapshot()

Remarks

This method is obsolete. Use MemoryProfiler.TakeSnapshot instead.
Each snapshot consists of approximately one managed object per recorded managed object. Snapshots taken from the Editor contain the objects in all previous snapshots that haven't been garbage-collected. Therefore, repeated snapshots of the Editor might grow exponentionally. If you no longer need an old snapshot, null all references to it and call Collect before taking another one.