getrusage

Stuart D. Gathman stuart at bmsi.com
Thu Sep 11 01:14:44 EDT 2003


On Wed, 10 Sep 2003 19:49:36 -0400, Gerhard Häring wrote:

> On FreeBSD, you get correct numbers as well. The Linux kernel, however,
> doesn't implement the RUSAGE field, even though it could easily be done
> (I once had the same question as you, and did this research then).
> 
>> What is the goal?  I need to find a memory leak in an extension module.
> 
> Try compiling a debug version of Python with the option --with-debug and
> you can debug refcount problems much better.

The leak turned out to be in the C library wrapped by the extension
module.  I debugged the C library with http://dmalloc.com

Very nice package.

-- 
	      Stuart D. Gathman <stuart at bmsi.com>
Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.




More information about the Python-list mailing list