Given that MiniProfiler isnt actually running for non-local requests due to the following:
protected void Application_BeginRequest()
{
if (Request.IsLocal)
MiniProfiler.Start();
}
Is it still okay then (performance-wise) to leave the use of ProfiledDbConnection in production code?
var db = new MyDataContext(new StackExchange.Profiling.Data.ProfiledDbConnection(new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["MyConnectionString"].ConnectionString), MiniProfiler.Current))