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
1
vote
2 answers

MiniProfiler not disposing Timings

I have noticed, that the MiniProfiler somehow doesn't dispose/release the Timings leading to a possible memory leak. I used the DotMemory of Jetbrains to make a snapshot before and after the workload. All of the 1000 Timings still remained in an…
TheMike
  • 19
  • 3
1
vote
1 answer

MiniProfiler dynamic response handling in .NET 6

Recently I have integrated MiniProfiler into a .NET 6 API and all works well, can see the SQL queries via EFCore and all on the dashboard. What I would like to achieve now is that the profiler still profiles all HTTP requests like it does now, but…
DisplayName
  • 195
  • 1
  • 16
1
vote
1 answer

MiniProfiler .Ignore() extension method does not disable profiling

I have a method with a portion of code I want to ignore from profiling when using MiniProfiler. As from documentation, the extension method that does this is .Ignore(), that when used in a using statement should disable profiling for the…
Diogo Rocha
  • 9,759
  • 4
  • 48
  • 52
1
vote
2 answers

Integrate MiniProfiler with .NetCore 3.1

I want to integrate MiniProfiler is a WebApi or View /XX/results-index. The WebApi is authenticated with Bearer Tokens. I only want Group Users in Active Directory can see the results, but I don't get it. I have this code in…
Nacho
  • 41
  • 5
1
vote
1 answer

How to profile many connections with ServiceStack.MiniProfiler?

After registering my connections, I want to profile them. With the code below, I only profile the main connection (guepard). public static IDbConnectionFactory RegisterConnections(this Container self, bool enableProfiler) { var…
labilbe
  • 3,501
  • 2
  • 29
  • 34
1
vote
1 answer

Do .NET Core console apps have a memory ceiling?

I have successfully deployed a series of solutions as .NET Core console apps. These run successfully under normal circumstances but often it appears the data load (using EntityFramework Core query with .ToList() to retain in memory for multiple…
dodegaard
  • 1,087
  • 2
  • 10
  • 23
1
vote
0 answers

Use MiniProfiler to capture slow requests

I want to use MiniProfiler to call a function once a set time limit has gone by. This is how MiniProfiler is set up. After that I've included the profiling script which we use to profile whatever needs profiling. My problem is to create some sort of…
Racksay
  • 21
  • 4
1
vote
1 answer

Miniprofiler: Send metrics to influxDB

Is there a way to send miniprofiler metrics to influxDB? Or hook to it so you can capture the metrics and then forward them to another DB.
ryudice
  • 36,476
  • 32
  • 115
  • 163
1
vote
0 answers

Getting Error in Miniprofiler in ASP.NET MVC application

I am getting following error during integration of miniprofiler The Entity Framework was already using a DbConfiguration instance before an attempt was made to add an 'Loaded' event handler. 'Loaded' event handlers can only be added as part of…
imran
  • 11
  • 3
1
vote
1 answer

TrivialDuration of miniprofiler

Can we reduce the time for TrivialDurationThresholdMilliseconds using miniprofiler tool as this code is not showing any effects written inside global.asax.cs private void StartProfiler() { MiniProfiler.Start(); …
Sneha Rani
  • 11
  • 1
  • 3
1
vote
1 answer

Add custom duration in Miniprofiler tool

I have played around with the Miniprofiler recently. It works fine in our application, and have found some interesting things we're working on. However, I have a use case, where I need to make a custom injection with a record, where I can set the…
Lars Holdgaard
  • 9,496
  • 26
  • 102
  • 182
1
vote
1 answer

MiniProfiler not logging all steps - only with active breakpoints

When using the MiniProfiler to hunt down a performance issue, I encountered a situation, where the MiniProfiler would log only a few of the calls to MiniProfiler.Step(). This is the code: The breakpoints are set to only count the number of hits…
Leif
  • 2,143
  • 2
  • 15
  • 26
0
votes
0 answers

ASP.NET Core Web API : application restriction for MiniProfiler screens if user has no admin roles

I have an ASP.NET Core Web API that serves mobile applications via endpoints. In Development mode, it's OK, every user can see it, but in production it's not correct. I want to use MiniProfiler in production also, but the profiler has critical and…
insiyatif
  • 1
  • 1
0
votes
0 answers

.Net Core Identity running same requests about Identity tables(AspNetUsers, AspNetUserClaims, AspNetRoles, AspNetRoleClaims) on any request

I have a problem with the identity server. It sends a few identity server methods to each request after just a few minutes when I sign in with the identity server manager. Actually, it doesn't need those requests, but it sends them. I don't use…
0
votes
0 answers

Miniprofiler.MVC5: "profiler/results" 404 not found when deployed on IIS

To use Miniprofiler in an MVC 5 application, I followed all the steps mentioned in MiniProfiler for .NET Documentation for ASP.NET with these differences in Global.aspx: protected void Application_Start() { MiniProfiler.Configure(new…
Nina
  • 508
  • 4
  • 21