Exemplo n.º 1
0
        private static ProfilerRecorder Create(ProfilerRecorderHandle statHandle, int maxSampleCount, ProfilerRecorderOptions options)
        {
            ProfilerRecorder result;

            ProfilerRecorder.Create_Injected(ref statHandle, maxSampleCount, options, out result);
            return(result);
        }
Exemplo n.º 2
0
        private static ProfilerRecorderSample GetSampleInternal(ProfilerRecorder handle, int index)
        {
            ProfilerRecorderSample result;

            ProfilerRecorder.GetSampleInternal_Injected(ref handle, index, out result);
            return(result);
        }
Exemplo n.º 3
0
        public void Dispose()
        {
            bool flag = this.handle == 0uL;

            if (!flag)
            {
                ProfilerRecorder.Control(this, ProfilerRecorder.ControlOptions.Release);
                this.handle = 0uL;
            }
        }
Exemplo n.º 4
0
        public void CopyTo(List <ProfilerRecorderSample> outSamples, bool reset = false)
        {
            bool flag = outSamples == null;

            if (flag)
            {
                throw new ArgumentNullException("outSamples");
            }
            this.CheckInitializedAndThrow();
            ProfilerRecorder.CopyTo_List(this, outSamples, reset);
        }
Exemplo n.º 5
0
        public unsafe ProfilerRecorderSample[] ToArray()
        {
            this.CheckInitializedAndThrow();
            int count = this.Count;

            ProfilerRecorderSample[] array = new ProfilerRecorderSample[count];
            ProfilerRecorderSample[] array2;
            ProfilerRecorderSample * outSamples;

            if ((array2 = array) == null || array2.Length == 0)
            {
                outSamples = null;
            }
            else
            {
                outSamples = &array2[0];
            }
            ProfilerRecorder.CopyTo_Pointer(this, outSamples, count, false);
            array2 = null;
            return(array);
        }
Exemplo n.º 6
0
 private static long GetLastValue(ProfilerRecorder handle)
 {
     return(ProfilerRecorder.GetLastValue_Injected(ref handle));
 }
Exemplo n.º 7
0
 private unsafe static int CopyTo_Pointer(ProfilerRecorder handle, ProfilerRecorderSample *outSamples, int outSamplesSize, bool reset)
 {
     return(ProfilerRecorder.CopyTo_Pointer_Injected(ref handle, outSamples, outSamplesSize, reset));
 }
Exemplo n.º 8
0
 public void Reset()
 {
     this.CheckInitializedAndThrow();
     ProfilerRecorder.Control(this, ProfilerRecorder.ControlOptions.Reset);
 }
Exemplo n.º 9
0
 private unsafe static extern int CopyTo_Pointer_Injected(ref ProfilerRecorder handle, ProfilerRecorderSample *outSamples, int outSamplesSize, bool reset);
Exemplo n.º 10
0
 private static extern void GetSampleInternal_Injected(ref ProfilerRecorder handle, int index, out ProfilerRecorderSample ret);
Exemplo n.º 11
0
 private static extern bool GetWrapped_Injected(ref ProfilerRecorder handle);
Exemplo n.º 12
0
 private static extern double GetLastValueAsDouble_Injected(ref ProfilerRecorder handle);
Exemplo n.º 13
0
 private static extern ProfilerMarkerDataType GetValueDataType_Injected(ref ProfilerRecorder handle);
Exemplo n.º 14
0
 private static extern void Create_Injected(ref ProfilerRecorderHandle statHandle, int maxSampleCount, ProfilerRecorderOptions options, out ProfilerRecorder ret);
Exemplo n.º 15
0
 private static ProfilerMarkerDataType GetValueDataType(ProfilerRecorder handle)
 {
     return(ProfilerRecorder.GetValueDataType_Injected(ref handle));
 }
Exemplo n.º 16
0
 private static void Control(ProfilerRecorder handle, ProfilerRecorder.ControlOptions options)
 {
     ProfilerRecorder.Control_Injected(ref handle, options);
 }
Exemplo n.º 17
0
 public ProfilerRecorderSample GetSample(int index)
 {
     this.CheckInitializedAndThrow();
     return(ProfilerRecorder.GetSampleInternal(this, index));
 }
Exemplo n.º 18
0
 public unsafe int CopyTo(ProfilerRecorderSample *dest, int destSize, bool reset = false)
 {
     this.CheckInitializedWithParamsAndThrow(dest);
     return(ProfilerRecorder.CopyTo_Pointer(this, dest, destSize, reset));
 }
Exemplo n.º 19
0
 private static extern void Control_Injected(ref ProfilerRecorder handle, ProfilerRecorder.ControlOptions options);
Exemplo n.º 20
0
 private static double GetLastValueAsDouble(ProfilerRecorder handle)
 {
     return(ProfilerRecorder.GetLastValueAsDouble_Injected(ref handle));
 }
Exemplo n.º 21
0
 private static extern long GetLastValue_Injected(ref ProfilerRecorder handle);
Exemplo n.º 22
0
 private static int GetCount(ProfilerRecorder handle, ProfilerRecorder.CountOptions countOptions)
 {
     return(ProfilerRecorder.GetCount_Injected(ref handle, countOptions));
 }
Exemplo n.º 23
0
 private static extern int GetCount_Injected(ref ProfilerRecorder handle, ProfilerRecorder.CountOptions countOptions);
Exemplo n.º 24
0
 private static bool GetWrapped(ProfilerRecorder handle)
 {
     return(ProfilerRecorder.GetWrapped_Injected(ref handle));
 }
Exemplo n.º 25
0
 private static extern bool GetRunning_Injected(ref ProfilerRecorder handle);
Exemplo n.º 26
0
 private static bool GetRunning(ProfilerRecorder handle)
 {
     return(ProfilerRecorder.GetRunning_Injected(ref handle));
 }
Exemplo n.º 27
0
 private static extern void CopyTo_List_Injected(ref ProfilerRecorder handle, List <ProfilerRecorderSample> outSamples, bool reset);
Exemplo n.º 28
0
 private static void CopyTo_List(ProfilerRecorder handle, List <ProfilerRecorderSample> outSamples, bool reset)
 {
     ProfilerRecorder.CopyTo_List_Injected(ref handle, outSamples, reset);
 }
 public ProfilerRecorderDebugView(ProfilerRecorder r)
 {
     this.m_Recorder = r;
 }
Exemplo n.º 30
0
 public void Stop()
 {
     this.CheckInitializedAndThrow();
     ProfilerRecorder.Control(this, ProfilerRecorder.ControlOptions.Stop);
 }