[Baypiggies] Watching how much memory my Python program is taking up

Jeff Quast contact at jeffquast.com
Thu Feb 19 21:05:23 CET 2015


just open() it

> On Feb 19, 2015, at 12:02 PM, Paul Hoffman <paul.hoffman at gmail.com> wrote:
> 
> This could be a good shot, but I'm not sure how to use it to get the current amount of memory used by the Python program. If I do a subprocess.getoutput("cat /proc/sefl/status"), is shows the amount of memory used for "cat", not for the enclosing program.
> 
> --Paul Hoffman
> 
> On Thu, Feb 19, 2015 at 9:27 AM, William Deegan <bdbaddog at gmail.com <mailto:bdbaddog at gmail.com>> wrote:
> Paul,
> 
> If you only care about linux you can parse /proc/self/status
> 
> -Bill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/baypiggies/attachments/20150219/c290ad62/attachment.html>


More information about the Baypiggies mailing list