memory profiler?
John Reese
jtr at ofb.net
Sat Apr 23 17:07:46 EDT 2005
On Wed, 20 Apr 2005 23:06:51 -0400, Peter Hansen <peter at engcorp.com> wrote:
> John Reese wrote:
>> Is there a memory or heap profiler for python programs? So that, for
>> example, if a program was bloating over time I could see how many of
>> each object there were and maybe even where the references were?
>
> The "gc" module has a variety of helpful features
> like that.
>
> -Peter
In particular, get_objects() and get_referrers(). Good point.
More information about the Python-list
mailing list