memory profiling

Matt Russell matthew.russell at securetrading.com
Wed Jun 13 05:50:17 EDT 2001


I am aslo interested in finding a way to track memory leaks in python
programs.
Does one have to have the module resource.c compiled into the
interpreter B 4 using something such as memprof_c or are their other
tools availble for tracking memory leaks?

TIA
Matt


Geoffrey  Gerrietts <geoff at homegain.com> wrote in message news:<mailman.992396419.8759.python-list at python.org>...
> I'm sure this question has been asked and answered a few times now, but I
> can't seem to find an answer for it, either in the FAQ or in the newsgroup
> archives.
> 
> How do people do memory profiling in python? I'd like to compare, for
> instance, the memory consumed by a dictionary-based approach versus a list
> or tuple based approach. I've seen the tool in mxTools, sizeof, which is
> nice, but that doesn't seem to address the big "random" factor, the empty
> pointers in the dictionary.
> 
> Does a tool exist that will let me measure this in some reasonably
> straightforward way? Are other people doing any kind of memory profiling, or
> do folks just "eyeball it"? Am I missing something blatantly and plainly
> obvious that I should be embarassed for not seeing?
> 
> Thanks in advance,
> --G.
> 
> ---
> Geoff Gerrietts <geoff at homegain.com>
> Software Engineer, HomeGain.com
> 510-655-0800 x4320



More information about the Python-list mailing list