How to get memory usage on Windows?
gmuller at worldonline.nl
Sun Sep 22 20:56:51 CEST 2002
"Wolfgang Strobl" <ws at mystrobl.de> schreef in bericht
news:f51sou8o4j9pkilhc3g6jevkqmkk7jr3pl at 4ax.com...
> "GerritM" <gmuller at worldonline.nl>:
> >Searching in books , documentation (a.o. win32api) and net did not yet
> >I found this article on the net:
> >but how to call this function from Python?
> I guess thanks to Mark Hammond you already have everything you need.
> Have a look at \Python22\Lib\site-packages\win32\Lib\win32pdhutil.py,
> uncomment the test function, run it.
> I snarfed the following snippet straight from win32pdhutil.py:
> Wir danken für die Beachtung aller Sicherheitsbestimmungen
thanks. I think this will work only on NT. Here at home I have "only"
windows98, which gives the following message:
"RuntimeError: The pdh.dll entry point functions could not be loaded."
I will have to try this at work, on a windows2000 machine.
More information about the Python-list