Get CPU usage of a single process in Windows
Tim Roberts
timr at probo.com
Sat Sep 9 02:17:16 EDT 2006
Tor Erik <torerik81 at gmail.com> 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 probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list