title: Using MiniProfiler with MVC 5
body: <p><strong>Edit</strong>
  Got the answer <a href="https://stackoverflow.com/questions/18790507/miniprofiler-not-showing-up-on-asp-net-mvc?rq=1">here</a></p>
  
  <p>So I wanted to check out MiniProfiler to troubleshoot some performance issues.
  Before using it on production code I wanted to try it out with the a sample so went ahead with creating a MVC 5 application. This is plain vanilla app that gets created with the template.</p>
  
  <p>Added this code in the Index() method of HomeController:</p>
  
  <pre><code>var profiler = MiniProfiler.Current;
          using (profiler.Step("Set page title"))
          {
              ViewBag.Title = "Home Page";
          }
          using (profiler.Step("Doing complex stuff"))
          {
              using (profiler.Step("Step A"))
              { // something more interesting here
                  Thread.Sleep(100);
              }
              using (profiler.Step("Step B"))
              { // and here
                  Thread.Sleep(250);
              }
          }
          return View();
  </code></pre>
  
  <p>Added this line below the jquery bundle in _Layout:</p>
  
  <pre><code>@Scripts.Render("~/bundles/jquery")
  @StackExchange.Profiling.MiniProfiler.RenderIncludes()
  
  @Scripts.Render("~/bundles/bootstrap")
  @RenderSection("scripts", required: false)
  </code></pre>
  
  <p>Ran the app.
  Nothing shows up. No profiling, nothing.</p>
  
  <p>What am I missing?</p>
  
  <p>Regards.</p>