mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Added MiniProfiler
This commit is contained in:
parent
add780b431
commit
6355d5ada1
16 changed files with 6676 additions and 23 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue