how to get window performance data using python

Gerhard Häring gh_pythonlist at gmx.de
Thu Dec 20 02:27:54 EST 2001


Le 20/12/01 à 13:36, Torpedo écrivit:
> i need to get windows performance data from registory
> how to write this program , can anyone give an example program?
> very thanks for your help!

Minor nitpick: the registry isn't involved here.

You need to download and install the win32all package downloadable from
ActiveState, one or two clicks away from "ActivePython". If you're using
the Python flavour from ActiveState (ActivePython) it's already
included.

The needed module is called win32pdhquery.

And this might be useful:
http://www.python.org/windows/win32/win32pdhquery_tutorial.html

HTH,

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))




More information about the Python-list mailing list