Thanks for the reply Tim.<div><br></div><div>I have tried the below code:</div><div><div><br></div><div>import psutil</div><div><div>p = psutil.Process(3540)</div><div>print p.get_memory_info()</div></div><div><br></div><div>
<br></div><div>it outputs:</div><div><div>meminfo(rss=157237248, vms=139837440)</div></div><div><br></div><div>which is the memory for working set and  commit.  This is still not returning me the private value (which is what you see on your task manager).</div>
<div><br></div><div>Thanks,</div><div>Riz </div><br><div class="gmail_quote">On Fri, Apr 13, 2012 at 11:26 AM, Tim Golden <span dir="ltr">&lt;<a href="mailto:mail@timgolden.me.uk">mail@timgolden.me.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 13/04/2012 16:22, Riz Hossain wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I am looking for a way to capture the private memory usage by a process<br>
&gt; (the one that shows on task manager).  I searched online a lot but I am<br>
&gt; only seeing information on working memory size.  It would be also a<br>
&gt; great if I could get the peak value of private memory usage.<br>
<br>
</div>While I&#39;ve never done what you&#39;re describing, the first place<br>
I&#39;d look is psutil:<br>
<br>
  <a href="http://code.google.com/p/psutil/" target="_blank">http://code.google.com/p/psutil/</a><br>
<br>
TJG<br>
_______________________________________________<br>
python-win32 mailing list<br>
<a href="mailto:python-win32@python.org">python-win32@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-win32" target="_blank">http://mail.python.org/mailman/listinfo/python-win32</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><br>Riz Hossain <br>Engineering Physics (B.Eng)<br>Software Test Specialist<br>Research In Motion<br>295 Phillip Street<br>Waterloo, ON N2L 3L3<br><br><br>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.<br>

</div>