From the miniprofiler.com:
PM> Install-Package MiniProfiler
in your global.asax
:
using StackExchange.Profiling;
...
protected void Application_BeginRequest()
{
if (Request.IsLocal)
{
MiniProfiler.Start();
}
}
protected void Application_EndRequest()
{
MiniProfiler.Stop();
}
and then somewhere in your master page:
<%= StackExchange.Profiling.MiniProfiler.RenderIncludes() %>
This should be enough for starting.