Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 3
0
 public IProfiler Start() => MiniProfiler.Start(ProfileLevel.Info);
Ejemplo n.º 4
0
 /// <summary>
 /// Returns a new SqlProfiler to be used in the 'profiler' session.
 /// </summary>
 public SqlProfiler(MiniProfiler profiler)
 {
     Profiler = profiler;
 }