我的进程的 CPU 消耗
我想使用性能监视器来检查我的进程的 CPU 消耗。 现在我正在多核机器上工作。
如果我在任务管理器中查看我的进程,我会发现我的进程消耗了 20% 的 CPU。 如果我启动性能监视器,我选择 Process->->% Processor Time 我看到价值达到顶峰并超过 100%。 您知道为什么以及如何获得真实的测量值吗?
我还查看了所有 4 个核心的 CPU 消耗,但我不知道如何将消耗归因于我的进程。
如果您能建议一个有关如何读取 CPU 使用情况的链接或网址,我将非常感激! 多谢! AFG
I would like to use Performance Monitor to check the CPU consumption of my process.
Right now I am working on a MultiCore machine.
If I have a look at my process in TASK MANAGER I see that my process consumes 20% of CPU.
If I start performance monitor, I select Process->->% Processor Time
I see values peaking up and over 100%.
Do you know why and how to get the real measure?
I also looked at the CPU consumption for all of my 4 cores, but I don't know exactly how to attribute consumption to my process.
If you can suggest a link or url about how to read CPU usage I would really appreciate!
Thanks a lot!
AFG
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用 Sysinternals 中的 Process Explorer。非常有用。
这个文章 解释了您所看到的内容。
基本上,任务管理器对所有核心进行平均,而性能监视器则对每个核心上的
进程
时间进行求和。因此,在具有 4 个内核的系统上,% Processor Time
可能高达 400。N * 100 = MaxValue;
其中 N 是系统中内核/处理器的数量。Try Process Explorer from Sysinternals. Very useful.
This article explains what you are seeing.
Basically Task Manager averages the cores together, and Performance Monitor sums up the the
Process
's time on each core. So,% Processor Time
on a system with 4 cores could go up to 400.N * 100 = MaxValue;
Where N is the number of cores/processors in the system.