title: Using MVC Miniprofiler for every action call
body: <p>Iv been experimenting the great tool, Mvc <a href="http://code.google.com/p/mvc-mini-profiler/" rel="noreferrer">MiniProfiler</a>.</p>
  
  <p>I don't want to litter all my view with lots of <code>Step</code> commands, so I am wanting to use the profiler with every action call. Bad idea? This is what I have tried so far:</p>
  
  <pre><code> public abstract class BaseController : Controller
   {
          protected override void OnActionExecuting(ActionExecutingContext filterContext)
          {
              var profiler = MiniProfiler.Current;
              using (profiler.Step("Action: "+filterContext.ActionDescriptor.ActionName))
              {
                  base.OnActionExecuting(filterContext);
              }
          }
  }
  </code></pre>
  
  <p>But I don't think this is doing what I am intending? I think I need to start the profiler on <code>OnActionExecuting</code> and stop it on <code>OnResultExecuted</code>. How do I do this, considering the profiler is designed to be used with the <code>using</code> statement.</p>