Added MiniProfiler

This commit is contained in:
kay.one 2011-06-13 18:35:44 -07:00
commit 6355d5ada1
16 changed files with 6676 additions and 23 deletions

View file

@ -6,6 +6,7 @@ using System.Web;
using System.Web.Caching;
using System.Web.Mvc;
using System.Web.Routing;
using MvcMiniProfiler;
using Ninject;
using Ninject.Web.Mvc;
using NLog;
@ -85,6 +86,12 @@ namespace NzbDrone.Web
protected void Application_BeginRequest()
{
Thread.CurrentThread.Name = "UI";
var miniprofiler = MiniProfiler.Start();
}
protected void Application_EndRequest()
{
MiniProfiler.Stop();
}
}
}