How can I access the C# performance counter in the code?

前端 未结 2 1314
再見小時候
再見小時候 2021-01-05 16:47

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 performan

2条回答
  •  生来不讨喜
    2021-01-05 17:05

    You can fully interact with performancecounters throught the System.Diagnostics.PerformanceCounter classes (Documentation and examples here).

提交回复
热议问题