ASP.NET测量性能 [英] ASP.NET measure performance

查看:109
本文介绍了ASP.NET测量性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有5用户控件的页面。
此页面需要很长的时间来加载。
我加载这个页面中的iframe(的jQuery插件彩盒)。
如何衡量加载时间为每个用户控件?
并检查该用户控件或行为导致此问题对我来说。

I have a Page with 5 usercontrols. This page takes long time to load. I am loading this page in Iframe(jQuery Colorbox Plugin). how can I measure loading time for each usercontrol ? And checking which usercontrol or action causes this problem for me.

推荐答案

使用内置的分析器的VS2010。它会告诉你有成本最高的code路径。

Use the VS2010 built in profiler. It will show you the code paths that have the highest cost.

详细内容:

点击Analyze->启动性能向导... VS2010的主菜单上。 (我有VS终极版,我不知道这是否适用于所有版本。

Click Analyze->Launch Performance Wizard... on the VS2010 main menu. (I have VS Ultimate, I am not sure if this is available in all versions.

选择仪表。单击下一步。 (实验的所有选项:D)

Select Instrumentation. Click Next. (experiment with all the options! :D)

选择您要分析的项目。点击下一步。

Choose the project you want to analyze. Click Next.

选择启用层交互如果需要剖析。点击下一步,然后点击完成。

Select Enable Tier Interaction Profiling if needed. Click Next, then click Finish.

VS现在将推出IE浏览器,并运行你的应用程序。执行要检查你的应用程序的操作。关闭IE浏览器。

VS will now launch IE and run your app. Perform the actions in your application that you want to inspect. Close IE.

该分析报告将显示,这将使分析会话的细节。要特别注意热路径。

The profiling report will be shown that will give the details of the profiling session. Pay particular attention to the "Hot Path".

有乐趣的调试!

这篇关于ASP.NET测量性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆