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

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