static public int FilterToCurrentThread(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.Profiling.Recorder self = (UnityEngine.Profiling.Recorder)checkSelf(l);
         self.FilterToCurrentThread();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
Пример #2
0
 static public int FilterToCurrentThread(IntPtr l)
 {
     try {
         UnityEngine.Profiling.Recorder self = (UnityEngine.Profiling.Recorder)checkSelf(l);
         self.FilterToCurrentThread();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #3
0
 static public int get_enabled(IntPtr l)
 {
     try {
         UnityEngine.Profiling.Recorder self = (UnityEngine.Profiling.Recorder)checkSelf(l);
         pushValue(l, true);
         pushValue(l, self.enabled);
         return(2);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #4
0
 static public int CollectFromAllThreads(IntPtr l)
 {
     try {
         UnityEngine.Profiling.Recorder self = (UnityEngine.Profiling.Recorder)checkSelf(l);
         self.CollectFromAllThreads();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #5
0
 static public int set_enabled(IntPtr l)
 {
     try {
         UnityEngine.Profiling.Recorder self = (UnityEngine.Profiling.Recorder)checkSelf(l);
         bool v;
         checkType(l, 2, out v);
         self.enabled = v;
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Пример #6
0
 static GCAllocRecorderForDynamicBuffer()
 {
     AllocRecorder = UnityEngine.Profiling.Recorder.Get("GC.Alloc.DynamicBuffer");
 }