kepazon / mvc-mini-profiler

Automatically exported from code.google.com/p/mvc-mini-profiler
0 stars 0 forks source link

How to run in the context of MVC3 #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've been in GLOBAL.ASAX.CS writes
protected void Application_BeginRequest()
        {
            MiniProfiler profiler = null;
            if (Request.IsLocal)
            {
                profiler = MvcMiniProfiler.MiniProfiler.Start();
            }
        }
        protected void Application_EndRequest()
        {
            MvcMiniProfiler.MiniProfiler.Stop();
        }
But do not track SQL

Original issue reported on code.google.com by ZhaoYiFe...@gmail.com on 16 Nov 2011 at 2:29

GoogleCodeExporter commented 9 years ago

This is invalid, you are probably missing a RenderIncludes, see the MVC sample

Original comment by sam.saff...@gmail.com on 14 Feb 2012 at 4:46