MVC miniprofiler is a small Performance Analysis of ASP. net mvc designed by the stack overflow team.Program. You can monitor a page and other pages accessed through direct reference, Ajax, and IFRAME. The monitoring content includes the database content, the SQL statements used to access the database (EF and EF codefirst are supported) are displayed ). And displayed on the page in a friendly way.
Nuget can be used for installation.
Configuration and use can see here: http://code.google.com/p/mvc-mini-profiler/
Other tips:
Set in application_start
Change the path of the file generated by Profiler, including JS and the data file generated accordingly.
1:Miniprofiler. settings. routebasepath ="~ /Scripts";
Ignore the monitored path (if the original default value is not retained, the path cannot be Union)
1:Miniprofiler. settings. ignoredpaths =
2:New[] {"/Style /","/Images /","/Menu /","/Menu /"}
3:. Union (miniprofiler. settings. ignoredpaths)
4:. Toarray ();
Format SQL Mode
1:Miniprofiler. settings. sqlformatter =NewMvcminiprofiler. sqlformatters. inlineformatter ();