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
50
votes
4 answers

Using MiniProfiler's database profiling with NHibernate

What's the simplest way to use MiniProfiler's database profiling with NHibernate? In order for the profiler to work, I need to wrap the DbConnection that NHibernate uses in a ProfiledDbConnection. I'm not too familiar with the internals of…
Brant Bobby
  • 14,956
  • 14
  • 78
  • 115
47
votes
3 answers

Running MiniProfiler with runAllManagedModulesForAllRequests set to false

Recently we upgraded to MiniProfiler version 2.0.1 from v1.7, and since then we have not been able to use it in our MVC3 website because when it tries to get its resources, it instead gets a 404. An example resource call is: …
Adam Spicer
  • 2,703
  • 25
  • 37
34
votes
8 answers

Get SqlConnection from DbConnection

I have an Extension method on DbContext where I want to do a SqlBulkCopy. Therefore I need a SqlConnection. The connection from the DbContext is from the type DbConnection though. Among a few other things I tried this: var connection = new…
Dirk Boer
  • 8,522
  • 13
  • 63
  • 111
30
votes
2 answers

ASP.NET Compiler complaining of mismatching framework versions with MiniProfiler

I have an MVC3 project that I upgraded from VS2010 to VS2012. The project also has a reference to MiniProfiler. Our application compiles and runs fine in VS2012 without any warnings/errors. Both assemblies load fine when running with IIS Express.…
TheCloudlessSky
  • 18,608
  • 15
  • 75
  • 116
29
votes
4 answers

Is there a port mvc-mini-profiler for Rails?

I'm a big fan of the MiniProfiler created by Jarrod Dixon and the Stack Overflow team for ASP.NET. Is there a port of it for Rails applications? Since the core of the profiler is in JavaScript, JQuery.tmpl and Less it seems that porting the…
Kevin Pang
  • 41,172
  • 38
  • 121
  • 173
28
votes
2 answers

Mini MVC profiler: appears to be displaying profile times for every static resource

I've just started using the mvc-mini-profiler (http://code.google.com/p/mvc-mini-profiler/) and I think it's awesome. However, I'm getting some odd behaviour while using it. I've got an ASP.NET Webforms site running on IIS7.5 and for some reason…
growse
  • 3,554
  • 9
  • 43
  • 66
25
votes
3 answers

MiniProfiler not showing up on asp.net MVC

I added this to my Global.asax.cs: protected void Application_BeginRequest() { if (Request.IsLocal) { MiniProfiler.Start(); } } protected void Application_EndRequest() { MiniProfiler.Stop(); } I…
Dimo
  • 3,238
  • 6
  • 29
  • 46
24
votes
4 answers

Using Mini-Profilier with EF 4.3 & MVC 4 without creating the database

I have an issue where we are using EF 4.3 Code First against an existing database. I want to use the Mini-Profiler with EF and call MvcMiniProfiler.MiniProfilerEF.Initialize(); However, since we don't actually create any of the tables, the…
Daniel Lorenz
  • 4,178
  • 1
  • 32
  • 39
24
votes
3 answers

Using mvc-mini-profiler database profiling with Entity Framework Code First

I'm using the mvc-mini-profiler in my project built with ASP.Net MVC 3 and Entity Framework code-first. Everything works great until I attempt to add database profiling by wrapping the connection in the ProfiledDbConnection as described in the…
robmzd
  • 1,813
  • 3
  • 20
  • 37
24
votes
1 answer

how to store MVC MiniProfiler results

I want to save the results of the MVC MiniProfiler to a sql server database. I profile a high load mvc4 page to spot a tricky performance problem which is non-reproducible on our test or development system and only happens sporadically on the…
NickD
  • 2,672
  • 7
  • 37
  • 58
24
votes
5 answers

MiniProfiler cannot find jquery

I've been using the MiniProfiler to measure site performance. When I upgraded from version 1.9 to 2.0, it stopped working. I changed the namespace from MvcMiniProfiler to StackExchange.Profiling. But when I load a page, fiddler shows there is a 404…
epotter
  • 7,631
  • 7
  • 63
  • 88
22
votes
3 answers

Can I use the mvc mini profiler in a console application?

How can I use the mvc-mini-profiler in a C# console application? Also curious, does the mvc mini profiler put the actual profiled statistics in the left side of each web page or is that just custom javascript code done manually? I downloaded and ran…
Blankman
  • 259,732
  • 324
  • 769
  • 1,199
20
votes
1 answer

How do I use MiniProfiler with a single page web app / REST backend?

I have a single page javascript application (done with JavascriptMvc) and a backend with REST services built on top of ASP.NET MVC3 (done with NServiceMVC). The REST services have MiniProfiler installed and running, and the X-MiniProfiler-Ids…
gregmac
  • 24,276
  • 10
  • 87
  • 118
18
votes
3 answers

How can I make the ASP.NET MVC mini profiler work with Linq 2 SQL?

The ASP.NET MVC Mini Profiler looks awesome, but I don't get the Linq 2 SQL usage example. This is the Linq2SQL example from the profiler documentation: partial class DBContext { public static DBContext Get() { var conn =…
Adrian Grigore
  • 33,034
  • 36
  • 130
  • 210
16
votes
1 answer

MVC Mini Profiler on IIS 6

Has anyone been able to get the MVC mini profiler working on IIS 6? I've set up the profiler in my application and it works perfectly in Visual Studio, IIS Express and IIS 7.5 but when I put the exact same application onto IIS 6 it won't work. The…
Adam Flanagan
  • 3,052
  • 23
  • 31
1
2 3
25 26