Removed all MiniProfile calls that were trying to be simple trace messages (not actually profiling). This doesn't actually
work since MiniProfiler was not meant for that and won't actually output them unless you add Thread.Sleep statements into the using clauses simply to slow down the application, not ideal. Updated the WebProfiler to log a statement when in medium trust.
This commit is contained in:
19
src/Umbraco.Core/Profiling/ProfilerExtensions.cs
Normal file
19
src/Umbraco.Core/Profiling/ProfilerExtensions.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
namespace Umbraco.Core.Profiling
|
||||
{
|
||||
public static class ProfilerExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Writes out a step prefixed with the type
|
||||
/// </summary>
|
||||
/// <typeparam name="T"></typeparam>
|
||||
/// <param name="profiler"></param>
|
||||
/// <param name="name"></param>
|
||||
/// <returns></returns>
|
||||
public static IDisposable Step<T>(this IProfiler profiler, string name)
|
||||
{
|
||||
return profiler.Step(string.Format(typeof (T).Name + ", " + name));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user