Пример #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);
 }