Is there a way to see how much CPU usage per core a process is using?

一世执手 提交于 2019-12-04 06:47:51

Process Explorer at least can show you the threads of a given process and how much CPU those are using. Maybe you can get the core/cpu on which the threads are running somehow and then just add up. I have not much WinAPI experience, though. So maybe processor affinity can only be queried on processes.

You can't directly get the per-processer cycle times for a given process, but you can estimate it over time with QueryIdleProcessorCycleTime (as it returns idle times for all logical processors, i.e., cores) and QueryProcessCycleTime and assuming that it is the only non-idling process running.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!