Example #1
0
 public ProfiledSection(IProfilerSink profilerSink, TimeStatistics timeStatistics)
 {
     this.profilerSink   = profilerSink;
     this.timeStatistics = timeStatistics;
     TracingAnalyzer.ClearStatsForCurrentThread();
     stopwatch = Stopwatch.StartNew();
 }
Example #2
0
        public static ProfiledSection Profile(string groboTraceKey, IProfilerSink profilerSink)
        {
            var timeStatistics = GetTimeStatistics(groboTraceKey);

            return(new ProfiledSection(profilerSink, timeStatistics));
        }