有没有办法分析 ASP.NET MVC 中视图的性能?
我正在分析我的 MVC 应用程序,Performance Explorer 的速度约为 500 毫秒(50 毫秒代码,450 毫秒 SQL 往返,这在部署中不会存在)。
然而,等待 GET 请求响应的时间约为 1200 毫秒。
通过反复试验,我设法发现这是由于部分视图特别慢造成的。
但是,我以后有没有办法通过 profiling 来发现这一点呢?
如果它对我使用预编译的 Spark 视图有帮助,但适用于此或默认视图引擎的解决方案将不胜感激。
谢谢
I am profiling my MVC app and the speed from the Performance Explorer is around 500 ms (50 ms code, 450ms SQL roundtrips that won't exist in deployment).
However, the time taken waiting on a response to a GET request is around 1200ms.
I've managed to discover through trial and error that this is due to a particularly slow partial view.
However, is there any way for me to discover this through profiling in the future?
If it helps I am using precompiled Spark views but a solution that works for this or the default view engine would be appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用分析器。是什么阻止您仅附加 ASP.NET 分析器并查看时间花在哪里?
Use a profiler. What stops you from just attaching a profiler for ASP.NET and look where the time is spent?