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
0
votes
0 answers

Mini Profiler inline profiling async/await calls

Is there an existing method for Mini Profiler to inline wrap an async call? For example, for sync code, we can just do: var syncData = MiniProfiler.Current.Inline(() => GetData(), "GetData"); However if I have an async call like this: var…
vgru
  • 49,838
  • 16
  • 120
  • 201
0
votes
0 answers

Store MiniProfiler results in PostgreSQL

I have integrated MiniProfiler v4.2.22 in my Asp.Net Core application. Its is working as expected when using In-Memory database, but when i change the storage option to PostgreSQL or SQL Server, no data is coming in the results. Code Used…
0
votes
0 answers

MiniProfiler and EF Core 3

I cannot seem get it working. My situation: Microsoft.EntityFrameworkCore 3.1.22 (cannot upgrade) MiniProfiler.EntityFrameworkCore 4.2.22 No IServiceProvider (legacy code base, cannot upgrade) So I'm trying to use it like in a console app: …
UserControl
  • 14,766
  • 20
  • 100
  • 187
0
votes
1 answer

Umbraco 7 - Disable miniprofiler

We are soon going to production and want to disable mini-profiler. We have set: umbracoDebugMode=false and trace enabled=false in web.config transform. I can confirm that these values are being set in web config upon release but when I browse to…
0
votes
1 answer

MiniProfiler MVC SQL Timings Not Displaying

I am using MiniProfiler.Mvc5 v4.2.1 with C# for an ASP.NET MVC5 website. I am implementing MiniProfiler based on the Samples.Mvc5 project included in the source code repo and am having an issue with the display of SQL timings. I am curious if…
0
votes
0 answers

Miniprofiler (Asp.net Core) Using sessionStorage for Basic Auth

I am trying to use Miniprofiler on an Asp.Net Core back end. The front end is a SPA and using session storage to set basic auth. I am running into a problem where I need to set the basic auth from session storage for the mini profiler ui to load.…
0
votes
2 answers

MiniProfiler for AspNetCore MySql connection

In .Net framework I use MiniProfiler for MySql connection command logging. In my current AspNetCore solution MiniProfiler doesn't show sql commands as well. What MiniProfiler options I should be using to log it?
0
votes
1 answer

Asp.net core 2.2 api not able to integrate miniprofiler, dapper and mySql to work

I am trying to get miniprofiler and Dapper on MySql to work together to profile sql statements. I have managed to get miniprofiler and swagger to work together but the sql generated and executed by dapper are not intercepted for some reason, I…
Farhad-Taran
  • 6,282
  • 15
  • 67
  • 121
0
votes
0 answers

Error Log Profiler for Angular single page UI with Asp.Net Core 2 webApi server side

I am looking for logging and profiling solution for my web api application developed by c# .NetCore web api and Angular ui. I 've read the similar question in stack overflow but that was for about 2 years ago and answers do not help: Profiling…
0
votes
1 answer

How should I interpret this MiniProfiler result?

I am currently trying to analyze a performance issue where an ASP.NET MVC razor view renders very slowly: it takes 40+ seconds to return a response to the browser. This issue does not always occur: usually the page loads in ~1/2 seconds. Below is…
TC.
  • 4,133
  • 3
  • 31
  • 33
0
votes
1 answer

Use MiniProfiler with DevExpress XPO (ORM)

I'm trying to setup my project so that MiniProfiler is able to profile XPO's SQL calls. This should have been a very simple endeavor, as MiniProfiler just wraps an ordinary connection but this simple approach doesn't work. Here's the code that…
Loudenvier
  • 8,362
  • 6
  • 45
  • 66
0
votes
2 answers

Why is there an ambiguity with Dapper QueryAsync when used with MiniProfiler?

EDIT 1: When trying to call the extension method explicitly: Dapper.SqlMapper.QueryAsync(cnx, "SELECT TOP 10 * FROM dbo.Company;"); I have a much more explicit error message: The type 'SqlMapper' exists in both 'Dapper.StrongName,…
anon
0
votes
1 answer

MiniProfiler Entity Framework Core how to exclude calls to Open/Close?

In ASP.Net Core 2 web site we are using the latest (4-alpha9) MiniProfiler to see the SQL being generated. Beside generated SQL, I also see a lot of calls to Connection Close()/Connection Open(): They are fast and logging them seems useless to…
Shaddix
  • 5,901
  • 8
  • 45
  • 86
0
votes
0 answers

See miniprofiler results from included DLL

I have a Visual studio solution with 3 projects (umbraco cloud site). One of the projects is a website that runs on a webserver (web), it references another project which contains the business logic (core). Id like to use miniprofiler to profile…
Jonny2Hats
  • 75
  • 1
  • 8
0
votes
0 answers

unable to save mysql queries generated from EntityFramework to Nlog through miniprofiler

I was looking for an open source alternate to EntityProfiler. My project is in EF 5.0.0 and I tried MiniProfiler. Since It is a webapi project, I could not see the trace information in the UI. Managed to find vxcore.nlog nuget but it could not…