Asp.net mvc 如何使用MiniProfiler确定ASP MVC Razor配置文件

Asp.net mvc 如何使用MiniProfiler确定ASP MVC Razor配置文件,asp.net-mvc,razor,mvc-mini-profiler,razorengine,Asp.net Mvc,Razor,Mvc Mini Profiler,Razorengine,我的ASP MVC 4 web应用程序中有一些视图需要几秒钟才能呈现。 我已经安装了MiniProfiler来分析控制器和Razor视图。 在我的一个观点中,我看到了以下结果: duration (ms) from start (ms) http://localhost:51405/Surveys/Details/201306... 4.8 +0.0 Controller: Su

我的ASP MVC 4 web应用程序中有一些视图需要几秒钟才能呈现。 我已经安装了MiniProfiler来分析控制器和Razor视图。 在我的一个观点中,我看到了以下结果:

                                             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
从开始到结束的持续时间(毫秒)
http://localhost:51405/Surveys/Details/201306...        4.8 +0.0    
控制员:测量控制员。详情2.2+4.4
GetViewRows调查与租户6.1+4.5
GetDocuments 5.7+11.4
GetViewRows员工调查数据33.2+17.2
GetDocuments 7.3+51.4

渲染:详细信息1015.9+59.4
我如何进一步调查渲染需要1秒的时间?
可能会显示您的代码?我同意问题出在代码中,我的问题是为什么渲染步骤工具1015ms而内部部分不到40ms?剩下的时间都到哪里去了?在反复的要求下,这一步的时间会保持那么高吗?如果不是,它可能只是视图从cshtml->cs->Temporary ASP.NET文件程序集中的初始编译。