Adjustments to profiling

This commit is contained in:
NielsHartvig@UMBRACORATI.localdomain
2013-05-10 10:24:25 -02:00
parent f04916c9a9
commit 980cd20e4c
5 changed files with 573 additions and 542 deletions

View File

@@ -54,7 +54,7 @@ namespace Umbraco.Core
{
if (GlobalSettings.DebugMode)
{
if (!String.IsNullOrEmpty(Request["umbDebug"]) || Request.Path.Contains(Umbraco.Core.IO.SystemDirectories.Umbraco) )
if (!String.IsNullOrEmpty(Request["umbDebug"]))
Umbraco.Core.Profiling.Profiler.Instance.Start();
}
}
@@ -63,7 +63,7 @@ namespace Umbraco.Core
{
if (GlobalSettings.DebugMode)
{
if (!String.IsNullOrEmpty(Request["umbDebug"]) || Request.Path.Contains(Umbraco.Core.IO.SystemDirectories.Umbraco))
if (!String.IsNullOrEmpty(Request["umbDebug"]))
Umbraco.Core.Profiling.Profiler.Instance.Stop();
}
}