Beispiel #1
0
        public void StartProfilers()
        {
            EnsureDataBaseExists();
            OperationNames = new HashSet <string>();
            MvcMiniProfiler.StartProfiler();
            MiniProfiler = MvcMiniProfiler.GetMiniProfiler();

            PerfLabsStopWatch.StartProfiler();
        }
Beispiel #2
0
        public void StopProfilers()
        {
            PerformanceResult report = null;

            MvcMiniProfiler.StopProfiler();
            PerfLabsStopWatch.StopProfiler();
            SaveToDataBase();
            if (PerformanceLabsConfigurations.GenerateReport)
            {
                report = new PerformanceResult();
                report.GenerateHtmlResultFile();
            }
        }