public void StartProfilers() { EnsureDataBaseExists(); OperationNames = new HashSet <string>(); MvcMiniProfiler.StartProfiler(); MiniProfiler = MvcMiniProfiler.GetMiniProfiler(); PerfLabsStopWatch.StartProfiler(); }
public void StopProfilers() { PerformanceResult report = null; MvcMiniProfiler.StopProfiler(); PerfLabsStopWatch.StopProfiler(); SaveToDataBase(); if (PerformanceLabsConfigurations.GenerateReport) { report = new PerformanceResult(); report.GenerateHtmlResultFile(); } }