如何使用wmi查询从java程序中获取任何应用程序的CPU使用率

时间:2021-02-20 17:21:20

How can i get cpu usage of any application from java program using wmi query.I use jacob api for accessing wmi.

如何使用wmi查询从java程序中获取任何应用程序的CPU使用率。我使用jacob api访问wmi。

1 个解决方案

#1


0  

Please take a look here: How to know the CPU and memory usage of a process with WMI?

请看一下:如何通过WMI了解进程的CPU和内存使用情况?

Seems like Select Name,PercentProcessorTime from Win32_PerfFormattedData_PerfProc_Process

看起来像Win32_PerfFormattedData_PerfProc_Process中的Select Name,PercentProcessorTime

should work for you.

应该适合你。

#1


0  

Please take a look here: How to know the CPU and memory usage of a process with WMI?

请看一下:如何通过WMI了解进程的CPU和内存使用情况?

Seems like Select Name,PercentProcessorTime from Win32_PerfFormattedData_PerfProc_Process

看起来像Win32_PerfFormattedData_PerfProc_Process中的Select Name,PercentProcessorTime

should work for you.

应该适合你。