摆脱有关 MiniProfiler 自己的资源的分析信息的最简单方法是什么,例如http://localhost:9591/admin/mini-profiler-resources/results
Application_Start 中的设置
GlobalFilters.Filters.Add(new ProfilingActionFilter());
MiniProfilerEF.Initialize_EF42(true);
MiniProfiler.Settings.SqlFormatter = new SqlServerFormatter();
var viewEnginesCopy = viewEngines.ToArray();
viewEngines.Clear();
foreach (var viewEngine in viewEnginesCopy)
viewEngines.Add(new ProfilingViewEngine(viewEngine));
在 _Layout 之前</body>
@StackExchange.Profiling.MiniProfiler.RenderIncludes()