为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

性能测试内存检查工具CLR Profiler介绍

2018-09-09 3页 doc 24KB 66阅读

用户头像

is_472448

暂无简介

举报
性能测试内存检查工具CLR Profiler介绍DevPartner CLR Profiler介绍 CLR rofiler允许你查看进程的托管堆并且研究垃圾回收器的特性,使用该工具的不同视图,你可以得到你的应用程序有关执行,分配,已经内存消耗的情况。 CLR rofiler不是分析问题的起点,确切的说,它帮助你鉴别并且隔离有疑问的代码并且追踪内存泄漏。使用CLR Profiler,你可以鉴别哪些代码分配了太多的内存,导致太多次的内存回收已经占有内存时间太长。 注意:CLR Profiler是一个插入式的分析器,它会严重地减慢被分析的应用程序的运行速度,某些情况下会导...
性能测试内存检查工具CLR Profiler介绍
DevPartner CLR Profiler介绍 CLR rofiler允许你查看进程的托管堆并且研究垃圾回收器的特性,使用该工具的不同视图,你可以得到你的应用程序有关执行,分配,已经内存消耗的情况。 CLR rofiler不是分析问题的起点,确切的说,它帮助你鉴别并且隔离有疑问的代码并且追踪内存泄漏。使用CLR Profiler,你可以鉴别哪些代码分配了太多的内存,导致太多次的内存回收已经占有内存时间太长。 注意:CLR Profiler是一个插入式的分析器,它会严重地减慢被分析的应用程序的运行速度,某些情况下会导致10-100倍的速度减缓,该工具不是用在产品环境中。 你需要了解的: The primary function of CLR Profiler的主要功能是允许你了解你的应用程序如何与托管的,可回收的堆交互的。更重要的是,你可以研究包括: 谁在托管堆上分配了什么(谁,什么) 谁存活在托管堆上 谁引用了对象 垃圾回收器在你的程序的生存周期内做了什么 嗅探的结果被保存在日志文件中,你可以通过CLR Profiler的视图菜单以不同的方式来显示相应的视图。下表描述了几个主要的视图: 视图 对应的描述 Histogram Allocated Types 给你一个在你程序的生命期中哪些类型对象被分配的高级视图,该视图还显示被分配在大对象堆中的对象, Gives you a high-level view of what object types are allocated (by allocation size) during the lifetime of your application. This view also shows those objects that are allocated in the large object heap (objects larger than 85 KB). This view allows you to click parts of the graph so that you can see which methods allocated which objects. Histogram Relocated Types 展示被垃圾回收器迁移的对象(因为它们在垃圾回收过程中被保留) Objects By Address 显示在指定的时间托管堆上都有哪些对象 Histogram By Age 允许你查看托管堆上对象的生命期 Allocation Graph 图形化显示对象分配的调用堆栈,你可以使用该视图: -查看每个方法的内存消费 -找出你不期望的内存分配 -找到有可能过度分配内存的方法 Assembly, Module, Function, and Class Graph 这四个视图很相似.你可以看到某个方法涉及到哪些Assembly,哪些类,哪些模块,哪些函数 Heap Graph 显示托管堆上的所有对象,以及它们的相关联对象. Call Graph Lets you see which methods call which other methods and how frequently. You can use this graph to get a feel for the cost of library calls and to determine how many calls are made to methods and which methods are called. Time Line Displays what the garbage collector does over the lifetime of the application. Use this view to: -Investigate the behavior of the garbage collector. -Determine how many garbage collections occur at the three generations (Generation 0, 1, and 2) and how frequently they occur. -Determine which objects survive garbage collection and are promoted to the next generation. You can select time points or intervals and right-click to show who allocated memory in the interval. Call Tree View Provides a text-based, chronological, hierarchical view of your application's execution. Use this view to: -See what types are allocated and their size. -See which assemblies are loaded as result of method calls. -Analyze the use of finalizers, including the number of finalizers executed. -Identify methods where Close or Dispose has not been implemented or called, thereby causing a bottleneck. -Analyze allocations that you were not expecting.
/
本文档为【性能测试内存检查工具CLR Profiler介绍】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。

历史搜索

    清空历史搜索