I have read all the posts I can find and looked at a couple tutorials but haven't made it past go.
- Installed MiniProfiler MVC and EF6
- Added
MiniProfilerEF6.Initialize();
toGlobal.asax Application_Start()
- Added MiniProfiler.Start(); to the protected void Application_BeginRequest() method in Global.asax.
Added the following to my _Layout page
<div class="row"> @MiniProfiler.RenderIncludes() </div>
Wrapped the method call I want to profile, thusly:
var profiler = MiniProfiler.Current; using (profiler.Step("Saving changes")) { eventId = _calendarRepository.AddUpdateCalendarEvent(eventDto); }
For good measure, though I shouldn't need to, added the MiniProfiler handler to the web.config system.webserver section.
Everything executes fine but MiniProfiler is nowhere to be found. Tried in Chrome and IE, the div I placed @MiniProfiler.RenderIncludes()
in is empty when I view the browser source.
I'm trying to profile a dbContext.SaveChanges()
call - I need to see the SQL EF is generating.
Thanks