Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/302.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/performance/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何检查c#中的性能计数器?_C#_Performance_Performancecounter - Fatal编程技术网

如何检查c#中的性能计数器?

如何检查c#中的性能计数器?,c#,performance,performancecounter,C#,Performance,Performancecounter,我的应用程序中存在一些性能问题 我在msdn上读到过这样的消息:最好看看性能计数器,它告诉我们GC中的%时间 请参阅msdn中的此链接: 但是我似乎找不到一个方法来查看这个性能计数器 我该怎么做?GC中的计数器%时间在.Net CLR内存下,按perfmon中的add counter,您将看到此窗口 是通过编程还是通过GUI?我需要任何可以使用性能计数器在GC中显示%时间的解决方案(GUI或编程)。您链接到的GUI示例看起来不错。我来看看。Thx。如果你的程序感觉滞后,那么你也可以使用分析器来检

我的应用程序中存在一些性能问题

我在msdn上读到过这样的消息:最好看看性能计数器,它告诉我们GC中的%时间

请参阅msdn中的此链接:

但是我似乎找不到一个方法来查看这个性能计数器


我该怎么做?

GC中的计数器%时间在.Net CLR内存下,按perfmon中的add counter,您将看到此窗口


是通过编程还是通过GUI?我需要任何可以使用性能计数器在GC中显示%时间的解决方案(GUI或编程)。您链接到的GUI示例看起来不错。我来看看。Thx。如果你的程序感觉滞后,那么你也可以使用分析器来检测耗时的函数。好的,谢谢你的建议,我也会考虑一下!非常感谢。我在GC柜台找时间。