Mini Profiler and SignalR -
I have ASP.NET MVC 4 website which uses a mini profiler. More recently, I have started using Signal R for more interactive pages.
When I take a long time, the Mini Profiler repeatedly generates an arithmetic overflow error because the signalR request is open. I think it is possible to ignore the signal r requests for the mini profiler.
Although I'm still curious to analyze the performance of my personal signal R action within the request using the mini profiler. Is there any way to do this?
The way the MiniPuffler runs, get started ()
your request In the beginning, which starts a miniprophiler example to collect your time. Then call Stop ()
at the end of the request, which will record your time.
In your case, you can not do this because the request continues for a long time. But you still want to record time for individual actions within a composite signal R request.
In this model, your actions are actually going to be considered in general web requests in a web application. So any solution that works for you, each of these tasks will have to run MiniProfiler.Start ()
and MiniProfiler.Stop
() In the end, each of them, treat each as their end-to-end unit (and whenever you call on Stop ()
save profile profiles)
Start Main Signals R Connection Signal R Action 1 MiniProfiler.Start () Action miniprophiler. Close () and Signal R Action 1 Signal R Action 2 MiniProfiler.Start () Action miner display the fileer. Stop () and Signal R Action 2 Request ... Many More Actions ... End Key Signal R Connection
Comments
Post a Comment