C#PerformanceCounter可能的参数列表? [英] C# PerformanceCounter list of possible Parameters?

查看:69
本文介绍了C#PerformanceCounter可能的参数列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用System.Data PerfomanceCounter类,并且找到了一些非常具体的示例,这些示例说明了如何检索磁盘空间或CPU使用率.

I am using the System.Data PerfomanceCounter class, and I have found some very specific examples of how to retrieve disk space or CPU usage.

但是我找不到有关以下值的文档:

However I am unable to find the documentation on the possible values for:

PerfomanceCounter.CategoryName
PerformanceCounter.CounterName
PerformanceCounter.InstanceName

我可以从类中看到不同的参数我可以传递给构造函数,但是甚至可以转到 the说类别名称"的页面没有给我可用值的列表.

I can see from the class the different parameters I can pass to the constructor, but even going to the page for say CategoryName does not give me a list of available values.

任何人都可以提供和建议有关如何找到这些可用价值的建议吗?

Can anyone offer and advice on how to find available values for these?

谢谢!

推荐答案

可以从 查看全文

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