Get CPU usage of a single process in Windows

Gerrit Muller gerrit.muller at embeddedsystems.nl
Tue Sep 12 05:52:11 EDT 2006


Tim Golden wrote:
<...snip...>
>>This should be possible as Taskmanager tracks CPU usage for every
>>process... Anyone know how this can be done?
>>
> 
> WMI can probably do the trick. If you can find something on Google
> for wmi cpu usage (or something similar) then translation to Python's
> usually quite easy. I'm fairly sure I've got an example somewhere, but
> I can't lay my hands on it at the mo.
> 
> TJG
> 
Tim Golden's general documentation/examples about WMI are at: 
<http://tgolden.sc.sabren.com/python/wmi.html>.

If you have a working example of CPU usage could you post the result? I 
would be interested.

kind regards, Gerrit Muller

-- 
Gaudi systems architecting:
<http://www.gaudisite.nl/>



More information about the Python-list mailing list