示例#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);
        }
示例#2
0
        private static ProfilerRecorderSample GetSampleInternal(ProfilerRecorder handle, int index)
        {
            ProfilerRecorderSample result;

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

            if (!flag)
            {
                ProfilerRecorder.Control(this, ProfilerRecorder.ControlOptions.Release);
                this.handle = 0uL;
            }
        }
示例#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);
        }
示例#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);
        }
示例#6
0
 private static long GetLastValue(ProfilerRecorder handle)
 {
     return(ProfilerRecorder.GetLastValue_Injected(ref handle));
 }
示例#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));
 }
示例#8
0
 public void Reset()
 {
     this.CheckInitializedAndThrow();
     ProfilerRecorder.Control(this, ProfilerRecorder.ControlOptions.Reset);
 }
示例#9
0
 private unsafe static extern int CopyTo_Pointer_Injected(ref ProfilerRecorder handle, ProfilerRecorderSample *outSamples, int outSamplesSize, bool reset);
示例#10
0
 private static extern void GetSampleInternal_Injected(ref ProfilerRecorder handle, int index, out ProfilerRecorderSample ret);
示例#11
0
 private static extern bool GetWrapped_Injected(ref ProfilerRecorder handle);
示例#12
0
 private static extern double GetLastValueAsDouble_Injected(ref ProfilerRecorder handle);
示例#13
0
 private static extern ProfilerMarkerDataType GetValueDataType_Injected(ref ProfilerRecorder handle);
示例#14
0
 private static extern void Create_Injected(ref ProfilerRecorderHandle statHandle, int maxSampleCount, ProfilerRecorderOptions options, out ProfilerRecorder ret);
示例#15
0
 private static ProfilerMarkerDataType GetValueDataType(ProfilerRecorder handle)
 {
     return(ProfilerRecorder.GetValueDataType_Injected(ref handle));
 }
示例#16
0
 private static void Control(ProfilerRecorder handle, ProfilerRecorder.ControlOptions options)
 {
     ProfilerRecorder.Control_Injected(ref handle, options);
 }
示例#17
0
 public ProfilerRecorderSample GetSample(int index)
 {
     this.CheckInitializedAndThrow();
     return(ProfilerRecorder.GetSampleInternal(this, index));
 }
示例#18
0
 public unsafe int CopyTo(ProfilerRecorderSample *dest, int destSize, bool reset = false)
 {
     this.CheckInitializedWithParamsAndThrow(dest);
     return(ProfilerRecorder.CopyTo_Pointer(this, dest, destSize, reset));
 }
示例#19
0
 private static extern void Control_Injected(ref ProfilerRecorder handle, ProfilerRecorder.ControlOptions options);
示例#20
0
 private static double GetLastValueAsDouble(ProfilerRecorder handle)
 {
     return(ProfilerRecorder.GetLastValueAsDouble_Injected(ref handle));
 }
示例#21
0
 private static extern long GetLastValue_Injected(ref ProfilerRecorder handle);
示例#22
0
 private static int GetCount(ProfilerRecorder handle, ProfilerRecorder.CountOptions countOptions)
 {
     return(ProfilerRecorder.GetCount_Injected(ref handle, countOptions));
 }
示例#23
0
 private static extern int GetCount_Injected(ref ProfilerRecorder handle, ProfilerRecorder.CountOptions countOptions);
示例#24
0
 private static bool GetWrapped(ProfilerRecorder handle)
 {
     return(ProfilerRecorder.GetWrapped_Injected(ref handle));
 }
示例#25
0
 private static extern bool GetRunning_Injected(ref ProfilerRecorder handle);
示例#26
0
 private static bool GetRunning(ProfilerRecorder handle)
 {
     return(ProfilerRecorder.GetRunning_Injected(ref handle));
 }
示例#27
0
 private static extern void CopyTo_List_Injected(ref ProfilerRecorder handle, List <ProfilerRecorderSample> outSamples, bool reset);
示例#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;
 }
示例#30
0
 public void Stop()
 {
     this.CheckInitializedAndThrow();
     ProfilerRecorder.Control(this, ProfilerRecorder.ControlOptions.Stop);
 }