Exemplo n.º 1
0
        public static Recorder Get(string samplerName)
        {
            var handler = ProfilerRecorderHandle.Get(ProfilerCategory.Any, samplerName);

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