我的进程的 CPU 消耗

发布于 2024-08-26 16:36:21 字数 286 浏览 4 评论 0原文

我想使用性能监视器来检查我的进程的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撞了怀 2024-09-02 16:36:21

尝试使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文