开发者

Is there any way to profile the performance of views in ASP.NET MVC?

开发者 https://www.devze.com 2022-12-26 20:38 出处:网络
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).

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 s开发者_开发百科olution that works for this or the default view engine would be appreciated.

Thanks


Use a profiler. What stops you from just attaching a profiler for ASP.NET and look where the time is spent?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号