Questions tagged [miniprofiler]

MiniProfiler is a simple and lightweight mini-profiler for .NET, Ruby, Go and Node.js.

MiniProfiler is a simple and lightweight mini-profiler for , , and .

It has minimal impact on performance as it does not attach itself to each and every method call. Instead, it provides an ADO.NET profiler, capable of profiling calls on raw ADO.NET (SQL Server, etc), LINQ-to-SQL, EF (including Code First), Lightspeed and a range of other data access scenarios and a pragmatic Step instrumentation that can be added to the particular piece of code which is explicitly required to be profiled.

The profiler also includes powerful and comprehensive database profiling capabilities. The built in database profiler supports any kind of DbConnection. It also supports Entity Framework and Linq-2-SQL.

MiniProfiler was designed by the team at Stack Overflow. It is in production use there and on the Stack Exchange family of sites.

76 questions
13
votes
3 answers

InvalidOperationException: Cannot find compilation library location for package 'System.Security.Cryptography.Pkcs'

Just upgraded a web project to .NET 6.0. Project compiles but when I run the site I get the following error: InvalidOperationException: Cannot find compilation library location for package 'System.Security.Cryptography'. I am using…
Sha
  • 2,185
  • 1
  • 36
  • 61
10
votes
1 answer

Linq2DB Nlog or logging

is there a way to log all linq2DB sql queries that are made to he database with NLog? I cannot find any realistic example. There is something for miniprofiler, but this doesn't help me, because I have not experience with it. pull request…
Franki1986
  • 1,320
  • 1
  • 15
  • 40
8
votes
1 answer

Passing data between ThreadPool threads

I have a C# webserver which I have been profiling using the StackOverflow miniprofiler. Because it's not an ASP.NET server, but each request was typically executed on its own thread, I rigged the miniprofiler to use ThreadStatic storage to track…
Cuthbert
  • 1,202
  • 1
  • 12
  • 18
7
votes
2 answers

MiniProfiler and AngularJS

Recently I was trying to profile ASP MVC methods called with AngularJS $http service and I noticed that MiniProfiler does not update the data as it does for AJAX calls from JQuery, for example. Is there a way to use MiniProfiler with Angular ?
iliyan tanev
  • 377
  • 2
  • 15
6
votes
1 answer

The type MiniProfiler exists in both Miniprofiler.Shared and MiniProfiler

I am trying to use the stack exchange MiniProfiler in my asp MVC project, but getting a really annoying error message in my view, where I am calling @using StackExchange.Profiling and @MiniProfiler.RenderIncludes() on the RenderIncludes line, VS…
Bassie
  • 9,529
  • 8
  • 68
  • 159
5
votes
0 answers

Show all the timings with MiniProfiler

I am using MiniProfiler to check the performance of my API. I have instrumented my API code with the MiniProfiler statements, and at the end of the API method I call MiniProfiler.RenderPlainText(); to print the performance log and save it on my…
Cristiano Ghersi
  • 1,944
  • 1
  • 20
  • 46
5
votes
1 answer

How to use Miniprofiler storage to support multiple web instances?

I've hooked up Miniprofiler to my local ASP.NET Core project and it works as expected. Now I need it to work in a hosted environment where there are multiple instances of the same website and there are no sticky sessions. It is my understanding that…
Morten Christiansen
  • 19,002
  • 22
  • 69
  • 94
5
votes
1 answer

Glimpse manual profiling a la MiniProfiler?

I'm looking into runtime profiling tools for a (WebForms) web app. I have considered MiniProfiler and Glimpse. In MiniProfiler it's easy (actually, the only way?) to log profiling messages: var profiler = MiniProfiler.Current; using…
Cristian Diaconescu
  • 34,633
  • 32
  • 143
  • 233
4
votes
1 answer

Getting "Not Found" error with mini profiler in ASP.NET Core with EF .net 5

I've added the following code to my asp.net core .net 5 app that works with entity framework. In startup.cs I have: services.AddMiniProfiler(options => { options.PopupRenderPosition =…
4
votes
1 answer

MiniProfiler Start and StartNew not Working as per Documentation

I am following these instructions to attach the MVC MiniProfiler to my project. Steps taken: Install-Package MiniProfiler.Mvc5 -IncludePrerelease using StackExchange.Profiling in Global.asax.cs MiniProfiler.Start() in Application_BeginRequest But…
Bassie
  • 9,529
  • 8
  • 68
  • 159
4
votes
1 answer

MiniProfiler and WebForms

So I'm trying to use MiniProfiler (https://github.com/MiniProfiler/dotnet) for WebForms website. What I did is: install package using nuget add MiniProfiler initialization in Global.asax.cs (Begin_request and End_request events) add <%=…
Andriy Zakharko
  • 1,623
  • 2
  • 16
  • 37
3
votes
1 answer

MiniProfiler ASP.NET Core - ShouldProfile based on user role

I have MiniProfiler set up in an ASP.NET Core application. Profiling works fine. However, I only want Admins to be able to profile. I have the following in ConfigureServices: services.AddMiniProfiler(options => { options.ShouldProfile = request…
Xavier Poinas
  • 19,377
  • 14
  • 63
  • 95
3
votes
0 answers

MiniProfiler.Current.RenderIncludes() returns empty string

I'm working on ASP.NET WebForms application and trying to implement MiniProfiler. I have latest version from NuGet (4.0.138) and I implemented all neccessary steps in Global.asax and web.config. Global.asax: Sub Application_Start(sender As Object, e…
Moebius
  • 640
  • 4
  • 9
3
votes
1 answer

MiniProfiler not showing up in ASP.NET Core

I'm trying to plumb MiniProfiler into my ASP.NET Core MVC web app. I'm not using Entity Framework, I'm using Dapper. Following the sample app, here are my changes: Added to Startup.cs ConfigureServices services.AddMiniProfiler(); Added to…
Matt Roberts
  • 26,371
  • 31
  • 103
  • 180
3
votes
1 answer

How to exclude a specific service from miniprofiler?

I am using miniprofiler to assess performance of my MVC6 application. Everything is working fine but I am looking for an option to exclude (mute) a particular service (requests) from my application. For example: My application is polling user…
Vikas Vaidya
  • 358
  • 3
  • 15
1
2 3 4 5 6