问题描述
我使用MVC3,ASP.NET4.5,EF5,C#,剃须刀,SQL Server 2008 R2的。
I am using MVC3, ASP.NET4.5, EF5, C#, Razor, SQL Server 2008 R2.
我分析它通过LINQ和EF做一些DML的Action。没有真正的问题,大约需要1秒。我使用掠影监视应用程序。不过,我注意到服务器时间为3秒,控制器动作时间为1秒,SO 2秒失踪。这是因为如果它正在2秒实例化控制器类等方面的应用正在升温。
I am analysing an Action which does some DML via LINQ and EF. No real issues, takes about 1 second. I am using Glimpse to monitor the application. However I notice that Server time is 3 seconds, and the controller Action time is 1 second, so 2 seconds are going missing. It is as if it is taking 2 seconds to instantiate the Controller class etc. The application is warmed up.
下面是截图:
在这里:
所以指标总结大致是:
共4秒
客户端1秒
服务器3秒
$ P $压实东西???? 2秒
动作1秒
Total 4 sec Client 1 sec Server 3 sec PreAction something ???? 2 sec Action 1 sec
这将发生在开发Web服务器以及与precompiled code的Win7 / IIS。
This happens with the dev web server as well as on Win7/IIS with Precompiled code.
先谢谢了。
推荐答案
这可能是一个缺点管窥。尝试使用和不使用它运行应用程序,看看是否有任何区别。
It might be a Glimpse drawback. Try to run application with and without it and see if there is any difference.
这篇关于试图了解为什么我收到的2秒延迟时间后获得和pre行动,发现掠影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!