Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.092 X-Spam-Evidence: '*H*': 0.83; '*S*': 0.02; 'subject:Python': 0.05; 'received:64.202.165': 0.07; 'python': 0.09; 'heap': 0.16; 'variables': 0.17; 'header:User-Agent:1': 0.26; 'allocated': 0.33; 'to:addr:python-list': 0.33; 'there': 0.35; 'data': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'space': 0.39; 'easy': 0.60; 'within': 0.64; 'header:Reply-To:1': 0.68; 'reply- to:no real name:2**0': 0.72; 'running,': 0.84 Date: Fri, 02 Nov 2012 12:57:47 -0700 From: Andrew Robinson User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111126 Thunderbird/8.0 MIME-Version: 1.0 To: python-list@python.org Subject: Memory profiling: Python 3.2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: andrew3@r3dsolutions.com List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 7 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351886261 news.xs4all.nl 6943 [2001:888:2000:d::a6]:40647 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32655 When Python3.2 is running, is there an easy way within Python to capture the *total* amount of heap space the program is actually using (eg:real memory)? And how much of that heap space is allocated to variables ( including re-capturable data not yet GC'd ) ?