Get CPU usage of a single process in Windows

Tim Golden tim.golden at
Fri Sep 8 19:42:08 CEST 2006

Tor Erik wrote:
> Hi,
> 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.


More information about the Python-list mailing list