MiniProfiler, get rid of request for own resources

351 Views Asked by At

What's the easiest way to get rid of profiling info about MiniProfiler's own resources, e.g http://localhost:9591/admin/mini-profiler-resources/results

Setup in 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));

In _Layout before </body>

@StackExchange.Profiling.MiniProfiler.RenderIncludes()
1

There are 1 best solutions below

0
On BEST ANSWER

This was an open bug in the 2.0.1 release, it has been fixed and deployed to nuget.