0

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

4

1 回答 1

0

请看这里:How to know the CPU and memory usage of a process with WMI?

看起来像 Select Name,PercentProcessorTime from Win32_PerfFormattedData_PerfProc_Process

应该为你工作。

于 2011-08-14T18:54:52.937 回答