如何访问代码的C#性能计数器? [英] How can I access the C# performance counter in the code?

查看:139
本文介绍了如何访问代码的C#性能计数器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要使用的性能计数器的输出在我的计划。如何访问性能计数器在代码中不使用PERFMON.EXE。我要创造我自己的性能计数器的应用程序。

I want to use the performance counter output in my program. How can I access the performance counter in code without using the perfmon.exe. I want to create my own performance counter app.

推荐答案

这是通过的PerformanceCounter类,样品这里

这篇关于如何访问代码的C#性能计数器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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