mvc-mini-profiler

MiniProfiler setup - A null was returned after calling the 'get_ProviderFactory' method

此生再无相见时 提交于 2019-12-11 03:54:51
问题 After hours of struggling with MiniProfiler to make it profile the Database queries, I have no luck and I'm getting the error: A null was returned after calling the 'get_ProviderFactory' method on a store provider instance of type 'StackExchange.Profiling.Data.ProfiledDbConnection'. The store provider might not be functioning correctly. I got through many SO posts but nothing has worked so far, like this post which is about the same error but with different configuration and well there's not

Miniprofiler.Current method does not return the time

牧云@^-^@ 提交于 2019-12-11 01:52:05
问题 I'm trying to get time with this code using MiniProfiler . var profiler = StackExchange.Profiling.MiniProfiler.Current; But it returns 0 ms in result. How to get current time in miniprofiler. This method gives me result with MiniProfiler version 2.1.0. Right now I am using MiniProfiler version 3.1.1.139 . 回答1: You can get the total elapsed time for the current MiniProfiler by accessing StackExchange.Profiling.MiniProfiler.Current.DurationMilliseconds - but only after the current MiniProfiler

Profiling asp.net core 2 (web api) with angular 5

一曲冷凌霜 提交于 2019-12-10 17:12:41
问题 I am looking for Profiling solutions for following environment, could someone suggest please. ASP.NET Core 2 on net471 EntityFramework 6.2.0 Angular 5.0.0 I looked into MiniProfiler & Glimpse . Glimpse has not been upgraded for Core 2.0 yet. MiniProfiler works with Core 2 but does not work properly for SPA. Someone has tried to extend http of Angular 2 but Angular 5 now uses HttpClient & interceptor I think. Also I could not figure out how to profile DataContext (System.Data.Linq) for SQL

mini-profiler nullreferenceexception

∥☆過路亽.° 提交于 2019-12-10 13:54:04
问题 When a stored procedure I'm running executes mini-profiler throws a null reference and causes my application to stop. In this instance the SP doesn't return anything. Here is the stacktrace: at MvcMiniProfiler.MiniProfiler.AddSqlTiming(SqlTiming stats) in C:\Users\sam\Desktop\mvc-mini-profiler\MvcMiniProfiler\MiniProfiler.cs:line 274 at MvcMiniProfiler.SqlTiming..ctor(DbCommand command, ExecuteType type, MiniProfiler profiler) in C:\Users\sam\Desktop\mvc-mini-profiler\MvcMiniProfiler

MVC-Mini-Profiler falsely showing duplicate queries

妖精的绣舞 提交于 2019-12-10 12:57:09
问题 I have been playing around with MVC-Mini-Profiler, and found it very useful. However, on all pages I trace on, I get reports of duplicate queries, like the one below. However, I have traced the queries in SQL Server Profiler, and there is not doubt it only hits the DB once. Am I missing a concept here or have I set it up the wrong way? I have searched high and low for people with similar problems, with no luck, so I doubt there is a bug. http://localhost:27941/clubs T+175.2 ms Reader 13.6 ms

How to hide miniprofiler?

北慕城南 提交于 2019-12-10 01:44:49
问题 I'm using MVC Mini profiler to check the speed of specific parts of my application, and would like to keep it there just in case something happens later and I may need to check "what's going wrong". It's not a full log set, but it comes pretty in handy to know what's making a page take long. So, my goal is to hide it and have it profile only when the request comes with a specific parameter. However, none of my attempts have worked in the way that I would expect. This has done the trick of not

MVC Miniprofiler, where did all the extra time go?

淺唱寂寞╮ 提交于 2019-12-08 04:34:29
问题 I'm using MVC Mini Profiler to find why a extremely basic page is quite slow to render: when run locally it takes 700 ms to render just 12kb of html. It shows that all of the actions are trivial (they don't even show unless I click the show trivial button), the longest is just 2.4 ms. But the "time from start" number jumps by around 100ms for each of these trivial actions called. What is using this time? Is there a miniprofiler option that can help show where this time was used? EDIT: The

How to customize the Mini-Profiler UI

China☆狼群 提交于 2019-12-07 12:32:27
问题 I have installed Mini-Profiler on my MVC 4 application and it is working like a charm. The only problem I have with it is that the UI covers up a critical part of my UI. I can move it around the page using the css but ideally I would like to make it so it defaults to a hidden state with a drawer button to make it pop out. I tried writing a javascript function that would manipulate the results display but when I placed the following code at the bottom of my _Layout.cshtml file the mini

Setup of mvc-mini-profiler for EF-db- first

人走茶凉 提交于 2019-12-07 05:32:15
问题 I'm trying to use the mini-profiler with old-style EF code - database-first. So far: I've created a db context using: string connectionString = GetConnectionString(); var connection = new EntityConnection(connectionString); var profiledConnection = ProfiledDbConnection.Get(connection); _context = profiledConnection.CreateObjectContext<MyEntitiesType>(); but then I hit a "Unable to find the requested .Net Framework Data Provider. It may not be installed." which I worked around using a <system

Find: DisplayTemplates Speed

社会主义新天地 提交于 2019-12-07 04:51:28
问题 I have Mini-Profiler installed on a new MVC4 site and notice a big wait time for certain Find: DisplayTemplates including String and DateTime. Below is an example. In another question, Sam Saffron said this about the find step On subsequent runs it is lightning fast (unless you have something really bad going on) But the following happens on every page load: http://localhost:80/SLS.Site/s/hogwarts/lunch... 2.6 +0.0 Check School Permissions 2.4 +2.0 1 sql 0.9 Controller: SchoolAdmin