如何找到在GC的.NET应用程序中花费%的时间? [英] How to find % time spent in GC for a .NET application?

查看:121
本文介绍了如何找到在GC的.NET应用程序中花费%的时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在试图找出这个值了,现在小时,无果。它开始变得非常沮丧。

I've been trying to find out this value out for hours now and to no avail. It's beginning to become quite frustrating.

我看到这个%的时间在GC花处处提到的(如的https: //msdn.microsoft.com/en-us/magazine/cc163528.aspx 为例),但没有提及如何将其恢复!

I see this "% time spent in GC" mentioned everywhere (like https://msdn.microsoft.com/en-us/magazine/cc163528.aspx for example) but with no mention on how to retrieve it!

我已经试过Visual Studio的内存分析器,蚂蚁(试用期满),CLR分析器和PerfView。这哪里是价值存储,这样我可以读它?

I've tried Visual Studio's memory profiler, ANTS (trial expired now), CLR Profiler, and PerfView. Where is this value stored so that I may read it?

推荐答案

它在性能监视器(Perfmon.exe)

It's in Performance Monitor (perfmon.exe)

  1. 启动性能监视器并选择要监视的进程。
  2. 点击就大了绿色的+号添加一个性能计数器。
  3. 在添加计数器对话框中,选择.NET CLR内存
  4. 在展开的.NET CLR内存
  5. 计数器
  6. 向下滚动,选择%时间在GC

这篇关于如何找到在GC的.NET应用程序中花费%的时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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