Sunday, 15 September 2013

How can I pin down ASP MVC Razor profile using MiniPrfiler

How can I pin down ASP MVC Razor profile using MiniPrfiler

I have some views in my ASP MVC 4 web application that take several
seconds to render. I've install MiniProfiler to profile both the
controllers and Razor views. In one of my views I see the following
results:
duration (ms) from start (ms)
http://localhost:51405/Surveys/Details/201306... 4.8 +0.0
Controller: SurveysController.Details 2.2 +4.4
GetViewRows survey_with_tenant 6.1 +4.5
GetDocuments 5.7 +11.4
GetViewRows employees_by_surveyid 33.2 +17.2
GetDocuments 7.3 +51.4
Render : Details 1015.9 +59.4 <--- This is
the problem
Render partial: _LoginPartial 2.6 +450.2
The second to last line show that it took 1015 ms to render Details Razor
view. The partial used in it took 2.6 seconds, there are other partials
but they are even bellow 1 ms.
How can I further investigate what takes over 1 second to render?

No comments:

Post a Comment