public ProfiledSection(IProfilerSink profilerSink, TimeStatistics timeStatistics) { this.profilerSink = profilerSink; this.timeStatistics = timeStatistics; TracingAnalyzer.ClearStatsForCurrentThread(); stopwatch = Stopwatch.StartNew(); }
public static ProfiledSection Profile(string groboTraceKey, IProfilerSink profilerSink) { var timeStatistics = GetTimeStatistics(groboTraceKey); return(new ProfiledSection(profilerSink, timeStatistics)); }