Questions tagged [mvc-mini-profiler]

A simple but effective mini-profiler for ASP.NET, WCF and the .NET platform

A simple but effective mini-profiler for ASP.NET, WCF and the .NET platform. It has been designed to be small and unobtrusive and thus to be suitable for production code profiling. Read the introduction.

Installing the mini-profiler can most easily be done using its NuGet package:

Install-Package MiniProfiler
388 questions
10
votes
1 answer

Can MvcMiniProfiler display SQL parameter values?

I've been trying out MvcMiniProfiler as replacement for EFTracingProvider since it's so much simpler to configure. It will display the sql just fine, but I'd like to see the parameter values as well. insert [dbo].[PersonName]([Prefix], [GivenName],…
jrummell
  • 42,637
  • 17
  • 112
  • 171
10
votes
1 answer

We are getting "a.tmpl.complete is not a function" with v1.9

We are getting the following error with v1.9 of the profiler. a.tmpl.complete is not a function Search and tried looking into issue but so far no luck on what to do to correct it. Anyone else know what to do?
Chris Craft
  • 5,285
  • 6
  • 46
  • 63
10
votes
3 answers

MVC Mini Profiler with Microsoft Enterprise Library

I'm sure it's possible to profile the Enterprise Library SQL commands, but I haven't been able to figure out how to wrap the connection. This is what I have come up with: Database db = DatabaseFactory.CreateDatabase(); DbCommand dbCommand =…
goalie7960
  • 863
  • 7
  • 26
10
votes
1 answer

StructureMap DBServiceRegistry and MVC-mini-profiler?

If I use this code in each Repository class then I get SQL profiling to work but I want to move that code from each class into the class where StructureMap handles the DB. Example of a Repository class: public DB CreateNewContext() { var…
KevinUK
  • 5,053
  • 5
  • 33
  • 49
10
votes
1 answer

How do you use the mvc-mini-profiler with Entity Framework 4.1

I am trying to use the mvc-mini-profiler with MVC3 and keep getting the following error Unable to determine the provider name for connection of type 'MvcMiniProfiler.Data.ProfiledDbConnection' Below is the code that I am using to try and instatiate…
10
votes
1 answer

MiniProfiler: How do I profile an AngularJS + WebAPI app?

Cross-posted on the MiniProfiler community. I'm trying to throw MiniProfiler into my current stack. I think I'm mostly setup, but am missing the UI approach and would like recommendations on the best way to proceed. Current Stack SQL for DB…
SeanKilleen
  • 8,809
  • 17
  • 80
  • 133
10
votes
1 answer

MiniProfiler ProfilingActionFilter & ProfilingViewEngine both not found

After upgrading from MiniProfiler v2 to v3 the ProfilingActionFilter & ProfilingViewEngine appear to be missing? I've googled and even checked the assembly for something similar, but there is nothing that stands out as it's replacement? Am I missing…
Stuart.Sklinar
  • 3,683
  • 4
  • 35
  • 89
9
votes
2 answers

And still, what is the magic of ASP.NET MVC Content folder?

I've just moved my resource files (javascript, css, images) from Content folder to custom Assets folder. And I've noticed a strange behavior - these files are not longer cached by browser and MvcMiniProfiler shows separate request for each resource…
9
votes
1 answer

Mini profiler upgrade from 1.7 to 1.9 breaks existing code

I have a asp.net project that uses mvc-mini-profiler. I was using version 1.7 of the NuGet package and I noticed that there is an updated package whose version is 1.9. I updated the package and now my code no longer compiles. The code that fails to…
Antoine Aubry
  • 12,203
  • 10
  • 45
  • 74
9
votes
1 answer

Slow EF profiling performance with mvc-mini-profiler

When I create my context using the below function the profiler shows about a 300ms increase from the standard EF (version 4) context creation method. Is there another way to do this that has better performance? It defeats the purpose of performance…
9
votes
2 answers

ASP.NET MVC MiniProfiler and EntityFramework 6 Initialization

I have a similar issue in that after loading MiniProfiler and MiniProfiler.EnitiyFramework6 I have this issue. MiniProfiler runs fine, but when I add to my Applcation_Start in Global.asax MiniProfilerEF6.Initialize(); I get this: An exception of…
tlatourelle
  • 596
  • 5
  • 15
8
votes
5 answers

Unable to cast object of type 'MvcMiniProfiler.Data.EFProfiledDbConnection' to type 'System.Data.SqlClient.SqlConnection'

Unable to cast object of type 'MvcMiniProfiler.Data.EFProfiledDbConnection' to type 'System.Data.SqlClient.SqlConnection'. I am trying to upgrade to MvcMiniProfiler 1.9.0 and I keep getting this when I call MiniProfilerEF.Initialize(). I have…
Khalid Abuhakmeh
  • 10,709
  • 10
  • 52
  • 75
8
votes
2 answers

MVC Mini Profiler Exception on MiniProfiler.Stop()

I'm just added Mini Profiler to my MVC3 project with nuget and I've followed the basic steps to get it set up. Starting the profile on Application_BeginRequest() and stopping it on Application_EndRequest() protected void…
BZink
  • 7,687
  • 10
  • 37
  • 55
8
votes
1 answer

Miniprofiler: site is inexplicably fast

We installed miniprofiler. It has been an edifying experience, but now we see that our database queries run 3x as fast with the profiler enabled as with it disabled. The only code we changed in our app was to add the profiledDbConnection: public…
Code Silverback
  • 3,204
  • 5
  • 32
  • 39
8
votes
4 answers

java web app profiler like this

Read an article on http://code.google.com/p/mvc-mini-profiler/ Any open-source profiler available like this for java web apps? Anyone started to port this one to Java environment? Thanks.
itsraja
  • 1,640
  • 4
  • 32
  • 48