Memory usage, in droves

Skip Montanaro skip at pobox.com
Fri Jul 27 11:04:00 EDT 2001


>>>>> "Danyel" == Danyel Fisher <danyelf at ics.uci.edu> writes:

    Danyel> So I want to figure out the memory leaks--what objects am I not
    Danyel> letting go?  What is the GC missing?

The gc module can tell you what stuff found that it couldn't reclaim.
That stuff is going to be caused by circular references.

Also, check out building Python with Py_TRACE_REFS defined.  It will add
getobjects and gettotalrefcount methods to the sys module.

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list