Profiler can be enabled via config file.

This commit is contained in:
Mark McDowall 2011-12-13 18:31:20 -08:00
commit 28259bc254
5 changed files with 29 additions and 2 deletions

View file

@ -13,7 +13,7 @@
ViewBag.Title = String.Format("{0} - NzbDrone", ViewBag.Title);
}
<title>@ViewBag.Title</title>
@if (!EnviromentProvider.IsProduction)
@if (!EnviromentProvider.IsProduction || ProfilerHelper.Enabled())
{
@MvcMiniProfiler.MiniProfiler.RenderIncludes()
}