Example #1
0
        public static void TakeTempSnapshot(Action <string, bool> finishCallback, CaptureFlags captureFlags = CaptureFlags.ManagedObjects | CaptureFlags.NativeObjects)
        {
            string[] array = Application.dataPath.Split(new char[]
            {
                '/'
            });
            string str  = array[array.Length - 2];
            string path = Application.temporaryCachePath + "/" + str + ".snap";

            MemoryProfiler.TakeSnapshot(path, finishCallback, captureFlags);
        }
Example #2
0
 public static void TakeSnapshot(string path, Action <string, bool> finishCallback, CaptureFlags captureFlags = CaptureFlags.ManagedObjects | CaptureFlags.NativeObjects)
 {
     MemoryProfiler.TakeSnapshot(path, finishCallback, null, captureFlags);
 }