private static ProfilerRecorder Create(ProfilerRecorderHandle statHandle, int maxSampleCount, ProfilerRecorderOptions options) { ProfilerRecorder result; ProfilerRecorder.Create_Injected(ref statHandle, maxSampleCount, options, out result); return(result); }
private static ProfilerRecorderSample GetSampleInternal(ProfilerRecorder handle, int index) { ProfilerRecorderSample result; ProfilerRecorder.GetSampleInternal_Injected(ref handle, index, out result); return(result); }
public void Dispose() { bool flag = this.handle == 0uL; if (!flag) { ProfilerRecorder.Control(this, ProfilerRecorder.ControlOptions.Release); this.handle = 0uL; } }
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); }
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); }
private static long GetLastValue(ProfilerRecorder handle) { return(ProfilerRecorder.GetLastValue_Injected(ref handle)); }
private unsafe static int CopyTo_Pointer(ProfilerRecorder handle, ProfilerRecorderSample *outSamples, int outSamplesSize, bool reset) { return(ProfilerRecorder.CopyTo_Pointer_Injected(ref handle, outSamples, outSamplesSize, reset)); }
public void Reset() { this.CheckInitializedAndThrow(); ProfilerRecorder.Control(this, ProfilerRecorder.ControlOptions.Reset); }
private unsafe static extern int CopyTo_Pointer_Injected(ref ProfilerRecorder handle, ProfilerRecorderSample *outSamples, int outSamplesSize, bool reset);
private static extern void GetSampleInternal_Injected(ref ProfilerRecorder handle, int index, out ProfilerRecorderSample ret);
private static extern bool GetWrapped_Injected(ref ProfilerRecorder handle);
private static extern double GetLastValueAsDouble_Injected(ref ProfilerRecorder handle);
private static extern ProfilerMarkerDataType GetValueDataType_Injected(ref ProfilerRecorder handle);
private static extern void Create_Injected(ref ProfilerRecorderHandle statHandle, int maxSampleCount, ProfilerRecorderOptions options, out ProfilerRecorder ret);
private static ProfilerMarkerDataType GetValueDataType(ProfilerRecorder handle) { return(ProfilerRecorder.GetValueDataType_Injected(ref handle)); }
private static void Control(ProfilerRecorder handle, ProfilerRecorder.ControlOptions options) { ProfilerRecorder.Control_Injected(ref handle, options); }
public ProfilerRecorderSample GetSample(int index) { this.CheckInitializedAndThrow(); return(ProfilerRecorder.GetSampleInternal(this, index)); }
public unsafe int CopyTo(ProfilerRecorderSample *dest, int destSize, bool reset = false) { this.CheckInitializedWithParamsAndThrow(dest); return(ProfilerRecorder.CopyTo_Pointer(this, dest, destSize, reset)); }
private static extern void Control_Injected(ref ProfilerRecorder handle, ProfilerRecorder.ControlOptions options);
private static double GetLastValueAsDouble(ProfilerRecorder handle) { return(ProfilerRecorder.GetLastValueAsDouble_Injected(ref handle)); }
private static extern long GetLastValue_Injected(ref ProfilerRecorder handle);
private static int GetCount(ProfilerRecorder handle, ProfilerRecorder.CountOptions countOptions) { return(ProfilerRecorder.GetCount_Injected(ref handle, countOptions)); }
private static extern int GetCount_Injected(ref ProfilerRecorder handle, ProfilerRecorder.CountOptions countOptions);
private static bool GetWrapped(ProfilerRecorder handle) { return(ProfilerRecorder.GetWrapped_Injected(ref handle)); }
private static extern bool GetRunning_Injected(ref ProfilerRecorder handle);
private static bool GetRunning(ProfilerRecorder handle) { return(ProfilerRecorder.GetRunning_Injected(ref handle)); }
private static extern void CopyTo_List_Injected(ref ProfilerRecorder handle, List <ProfilerRecorderSample> outSamples, bool reset);
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; }
public void Stop() { this.CheckInitializedAndThrow(); ProfilerRecorder.Control(this, ProfilerRecorder.ControlOptions.Stop); }