Select query of wmi used to view the process which has max usage of cpu

核能气质少年 提交于 2019-12-10 19:04:52

问题


What is the query used to view the topmost process which is having maximum usage of CPU using WMI?


回答1:


Use Win32_PerfFormattedData_PerfProc_Process class.

Select IDProcess, Name, PercentProcessorTime from Win32_PerfFormattedData_PerfProc_Process

Once you have those informations you can sort by PercentProcessorTime. It should work fine.



来源:https://stackoverflow.com/questions/4212124/select-query-of-wmi-used-to-view-the-process-which-has-max-usage-of-cpu

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