Beispiel #1
0
 public override StackExchange.Profiling.MiniProfiler Start(ProfileLevel level)
 {
     _profiler = new StackExchange.Profiling.MiniProfiler(ConsoleProfiling.ProfilingUrl(), level);
     SetProfilerActive(_profiler);
     _profiler.User = ConsoleProfiling.CurrentUser();
     return(_profiler);
 }
Beispiel #2
0
 public override StackExchange.Profiling.MiniProfiler Start(string sessionName = null)
 {
     _profiler      = new StackExchange.Profiling.MiniProfiler(ConsoleProfiling.ProfilingUrl());
     _profiler.Name = sessionName;
     SetProfilerActive(_profiler);
     _profiler.User = ConsoleProfiling.CurrentUser();
     return(_profiler);
 }