[python-win32] WMI to find private memory usage

Riz Hossain hossain.iqbal at gmail.com
Fri Apr 13 17:22:24 CEST 2012


Hello,

I am looking for a way to capture the private memory usage by a process
(the one that shows on task manager).  I searched online a lot but I am
only seeing information on working memory size.  It would be also a great
if I could get the peak value of private memory usage.

Thanks,
Riz


for process in c:
    if process.Caption.lower() == 'rimdevicemanager.exe':
        keys = process.properties.keys()
        keys.sort()
        print '\n'.join(['%s: %s' % (key, getattr(process, key)) for key in
keys])
-- 


This transmission (including any attachments) may contain confidential
information, privileged material (including material protected by the
solicitor-client or other applicable privileges), or constitute non-public
information. Any use of this information by anyone other than the intended
recipient is prohibited. If you have received this transmission in error,
please immediately reply to the sender and delete this information from
your system. Use, dissemination, distribution, or reproduction of this
transmission by unintended recipients is not authorized and may be unlawful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20120413/1feaab14/attachment.html>


More information about the python-win32 mailing list