小编spy*_*chu的帖子

如何获得超过2个内核的CPU使用率?

我尝试将我的程序CPU使用量除以核心.现在我使用PerformanceCounter并在0到1之间更改InstanceName我有来自2个核心的数据.

PerformanceCounter pc0 = new PerformanceCounter("Processor", "% Processor Time", "0");
PerformanceCounter pc1 = new PerformanceCounter("Processor", "% Processor Time", "1");
Run Code Online (Sandbox Code Playgroud)

如何获得第3,第4核等的核心使用?

有人能帮帮我吗?

谢谢

c# performancecounter cpu-usage

7
推荐指数
3
解决办法
1万
查看次数

标签 统计

c# ×1

cpu-usage ×1

performancecounter ×1