Get CPU usage of a single process in Windows

Tim Roberts timr at
Sat Sep 9 08:17:16 CEST 2006

Tor Erik <torerik81 at> wrote:
>This should be possible as Taskmanager tracks CPU usage for every 
>process... Anyone know how this can be done?

I answered this in the python-win32 mailing list.  Task manager and perfmon
do this by using the performance counter APIs.  Python-Win32 includes an
interface for that (import win32pdh), but I've never used it.
- Tim Roberts, timr at
  Providenza & Boekelheide, Inc.

More information about the Python-list mailing list