Discussion:
CPU by Process ID
(too old to reply)
Section One
2009-06-11 14:04:18 UTC
Permalink
Hi,

I'm trying to get a specific process's cpu usage in percentage.
99% of the time when i'm trying to read "PercentProcessorTime"
from "Win32_PerfFormattedData_PerfProc_Process" i get a 0 value.

what do i do?

thanks
unknown
2009-06-30 09:44:11 UTC
Permalink
That's probably correct. Even somewhat troublesome processes are often only
using the CPU a small portion of the time, and frequently a sliver that's
substantially less than 1%.
Post by Section One
Hi,
I'm trying to get a specific process's cpu usage in percentage.
99% of the time when i'm trying to read "PercentProcessorTime"
from "Win32_PerfFormattedData_PerfProc_Process" i get a 0 value.
what do i do?
thanks
Loading...