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
2
votes
1 answer

Mini-profiler does not show any statistics on sql queries?

The mini profiler does not show any statistics on sql queries I do setup according to the documentation and the example of the…
2
votes
1 answer

MiniProfiler - Replicate web view information in a console app

Is it possible to get the same level of information from mini-profiler when using it in a console app as you can get when in a web app? Ideally, I'd just like to self host the web UI in the console, but it doesn't look like that's possible. My main…
gmn
  • 4,199
  • 4
  • 24
  • 46
2
votes
1 answer

How to disable the display of loading static files in Miniprofiler for asp.net core 2.0

I am using Miniprofiler in an asp.net core2.0 application. Startup.cs services.AddMiniProfiler(options => { options.RouteBasePath = "/profiler"; (options.Storage as MemoryCacheStorage).CacheDuration =…
2
votes
0 answers

What is an appropriate way to drive MiniProfiler.NET's ResultsAuthorize handler given that it needs to be included high up in the middleware?

Pretty much as the title states - I'm struggling to find the best balance between: Having Miniprofiler run 'high up' enough in the middleware chain that it can 'see' the full picture of a request. Finding a way to Authorize requests through…
2
votes
1 answer

No profiling data is given using MiniProfiler and Dapper

I am working on a unit test that works with dapper. I have read following articles : https://miniprofiler.com/dotnet/HowTo/ProfileSql https://miniprofiler.com/dotnet/ConsoleDotNet and here's the code I have written : [TestMethod] public…
Beatles1692
  • 5,214
  • 34
  • 65
2
votes
2 answers

Unable to print query using Miniprofiler

I have integrated Entity Framework and CodeFirstStoredProc library in my project. I want to log the queries executed by both the libraries. Previously I was using Database.Log delegate provided by EF but as I want to log query from other libraries…
Manprit Singh Sahota
  • 1,279
  • 2
  • 14
  • 37
2
votes
2 answers

Dapper.Contrib and MiniProfiler (for MySql) integration issues

I'm trying to use MiniProfiler.Integrations.MySql along with Dapper.Contrib extensions to profile the sql queries sent to MySql server. I'm using my own ConnectionFactory: public IDbConnection GetConnection() { var connection = (DbConnection)…
2
votes
1 answer

How to get MiniProfiler 4 logging to Serilog (or access within Middleware)?

I've been trying to get MiniProfiler.AspNetCore to work with Serilog.AspNetCore, or otherwise be able to log calls. I tried creating a middleware with EndInvoke calling private void EndInvoke(HttpContext context) if (MiniProfiler.Current !=…
John
  • 6,503
  • 3
  • 37
  • 58
2
votes
1 answer

MiniProfiler has an empty parameter list

Working with the latest stable version of MiniProfiler (3.2) I am having an issue where the parameters list for the Command is empty. The SQL of the command is printing out fine through MiniProfiler but the parameters are not actually being…
Dan
  • 23
  • 5
2
votes
1 answer

CoreCLR Mini-Profiler Javascript calls not working

I'm not seeing my isomorphic-fetch based XHRs show up in the mini-profiler. My page response headers: Content-Type:text/html; charset=utf-8 Date:Fri, 14 Jul 2017 11:23:07…
Chris
  • 1,241
  • 1
  • 14
  • 33
2
votes
1 answer

MiniProfiler results UI shows empty names since using SqlServerStorage

We have been using MiniProfiler as a simple way to profile our ASP.NET MVC 5 application performance. It worked well in dev, but as soon as we put the application into staging on a web farm, we soon realised we needed to use a different/shared…
krisdyson
  • 3,217
  • 7
  • 43
  • 86
2
votes
1 answer

MiniProfiler page loading twice per request

I've boiled this down to the smallest example: Test.aspx (Code behind is empty) <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="C3.Pages.Test" %> <%@ Import Namespace="StackExchange.Profiling" %>
Tom Gullen
  • 61,249
  • 84
  • 283
  • 456
2
votes
0 answers

Outputting SQL statements in Console app

We have our code instrumented so that in our MVC5 application, we can see the actual executed SQL. We show the information using @MiniProfiler.RenderIncludes() on our _layout.cshtml file. We configure miniprofiler as…
photo_tom
  • 7,292
  • 14
  • 68
  • 116
2
votes
1 answer

MiniProfiler and Azure unaccounted for TTFB

I am using StackExchange.MiniProfiler with the MVC and EntityFramework add-ons to try and track down a long TTFB that reliably occurs for one type of request on our web site. As you can see in the image at bottom, the duration indicated for this…
jackmott
  • 1,112
  • 8
  • 16
2
votes
0 answers

MiniProfiler with MongoDB Csharp Driver 2.01

I would like to use the MiniProfiler with MongoDB but it looks like there is only support for the MongoDB Driver Version 1.9.0. The current version of the MongoDB Csharp Driver is 2.0.1 and it has changed a lot. Is there any workaround or fork on…
dknaack
  • 60,192
  • 27
  • 155
  • 202