调试优化工具

来源:互联网 发布:icann域名服务器 编辑:程序博客网 时间:2024/04/30 10:12
1.CLR Profiler
下载CLR Profiler
http://search.microsoft.com/en-us/DownloadResults.aspx?q=clr%20profiler
分析ASP.NET 应用程序
通过下面的步骤去分析asp.net应用程序
1.启动CLR Profiler。
2.确保下列选项已经勾选:
*Profiling active
*Allocations
*Calls
3.在File菜单中点击Profile ASP.NET。
CLR Profiler 完全关闭互联网信息服务(internet infomation services ,iis),添加那些需要分析的环境变量(environment vaiables),重启iis。CLR Profiler然后提示(prompt)你加载ASP.NET应用程序和等待ASP.NET工作京城启动。
4.使用MS的IE浏览你所想分析的ASP.NET应用程序。你总能运行你的Web应用程序通过客户端工具,如Microsoft Application Center Test(ACT,http://msdn.microsoft.com/en-us/library/aa287452.aspx.)。
5.当你已完成应用程序的运行,请点击CLR Profiler窗口中的 Kill ASP.NET。CLR Profiler关闭IIS,移除环境变量,重启IIS。
注意:有时候工具的当前版本不能对第4步页面的加载做出反映。如果出现这个问题,试着改变ASP.NET进程级别(identity)至System在machine.config中的<ProcessModel>中。你完成分析你的应用程序后,确保你改变的应用程序级别再该回到Machine。
原创粉丝点击