look in the gc module ...
Celine & Dave wrote: > Hello All, > > I am trying to find a profiler that can measure the > memory usage in a Python program. I would like to > gather some statistics about object usages. For > example, I would like to be able to see how much time > it takes to search for an item in a dict object, how > many times it has to access the symbol table to > retrieve a specific item, and things like that. > > Thanks, > > Dave > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com -- http://mail.python.org/mailman/listinfo/python-list