public void Stop() => MiniProfiler.Stop(discardResults: false);
/// <summary> /// Calls <see cref="MiniProfiler.Settings.EnsureStorageStrategy"/> to save the current /// profiler using the current storage settings /// </summary> /// <param name="current"></param> protected static void SaveProfiler(MiniProfiler current) { // because we fetch profiler results after the page loads, we have to put them somewhere in the meantime MiniProfiler.Settings.EnsureStorageStrategy(); MiniProfiler.Settings.Storage.Save(current); }
public IProfiler Start() => MiniProfiler.Start(ProfileLevel.Info);
/// <summary> /// Returns a new SqlProfiler to be used in the 'profiler' session. /// </summary> public SqlProfiler(MiniProfiler profiler) { Profiler = profiler; }