How to get memory usage on Windows?

GerritM gmuller at worldonline.nl
Sun Sep 22 18:03:17 CEST 2002


Searching in books , documentation (a.o. win32api) and net did not yet help
I found this article on the net:
http://www.developeriq.com/Magazinestories/02jul29memory.php3
but how to call this function from Python?

The module GC is mentioned with respect to memory leaks, but as far a I
could find, no status information can be obtained.

I would expect that in the run time information the size information is
present. Can this be accessed from Python itself?

regards Gerrit

"GerritM" <gmuller at worldonline.nl> schreef in bericht
news:amilhk$bi8$1 at reader1.tiscali.nl...
> I am building an access log analyzer. For the first version I did not
worry
> about performance or memory use, the first exploration was about what is
> practical information to extract and how to present. For current result
see
> http://www.extra.research.philips.com/natlab/sysarch/GaudiStatistics.html
> and
>
http://www.extra.research.philips.com/natlab/sysarch/weblog/index2002.over.h
> tml
>
> For the second version memory use becomes an issue. The brute force
version
> keeps all information simultaneously in memory, without any size
> optimization. This results now in memory use of about 250 MByte (measured
> via very coarse windows resource tool), which scales linear with the
amount
> of (ever increasing) input. I would like to be able to measure more
specific
> how much memory is used per phase and/or per function. Is there any
function
> returning this information. I noted that on Unix the resource module gives
> access to this kind of information, but I could not find any Windows
> alternative.
>
> regards Gerrit

--
www.extra.research.philips.com/natlab/sysarch/






More information about the Python-list mailing list