RequestNewSnapshot()
Requests a new snapshot from the currently connected target of the Profiler.
阅读时间1 分钟最后更新于 15 天前
Definition
- Type: Method
- Namespace: UnityEditor.MemoryProfiler
- Assembly: UnityEditor.CoreModule
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.