2011-12-14 02:31:20 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Web;
|
|
|
|
|
using NzbDrone.Common;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Web.Helpers
|
|
|
|
|
{
|
|
|
|
|
public static class ProfilerHelper
|
|
|
|
|
{
|
|
|
|
|
public static bool Enabled()
|
|
|
|
|
{
|
2012-03-07 02:59:43 +00:00
|
|
|
|
var environmentProvider = new EnvironmentProvider();
|
|
|
|
|
var configFileProvider = new ConfigFileProvider(environmentProvider);
|
2011-12-14 02:31:20 +00:00
|
|
|
|
|
|
|
|
|
return configFileProvider.EnableProfiler;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|