public static Recorder Get(string samplerName)
        {
            var handler = ProfilerRecorderHandle.Get(ProfilerCategory.Any, samplerName);

            if (!handler.Valid)
            {
                return(s_InvalidRecorder);
            }
            return(new Recorder(handler));
        }
Beispiel #2
0
 public ProfilerRecorder(ProfilerMarker marker, int capacity = 1, ProfilerRecorderOptions options = ProfilerRecorderOptions.Default)
 {
     this = ProfilerRecorder.Create(ProfilerRecorderHandle.Get(marker), capacity, options);
 }