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:
Shannon Deminick
2013-05-12 18:06:26 -10:00
parent b2fe35695f
commit 09a6cdc8b6
9 changed files with 58 additions and 54 deletions

View 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));
}
}
}