mvcminiprofiler

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

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

How to customize the Mini-Profiler UI

孤者浪人 提交于 2019-12-05 22:03:35
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-profiler would place all of it's code at the very bottom of the page after my customize function so the