public override StackExchange.Profiling.MiniProfiler Start(ProfileLevel level) { _profiler = new StackExchange.Profiling.MiniProfiler(ConsoleProfiling.ProfilingUrl(), level); SetProfilerActive(_profiler); _profiler.User = ConsoleProfiling.CurrentUser(); return(_profiler); }
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); }