debugging memory management via C API

Stefan Seefeld seefeld at sympatico.ca
Wed Jan 7 03:02:10 EST 2004


hi there,

I'm writing some C python extension and I'd like
to debug the memory management, i.e. run some
tests to see whether I did the ref counting
correctly, etc.

What's the suggested way to do that via the C API ?
Is there some function which I could call at the
very end of an application that will collect some
statistics about the memory (de)allocations done
associated with PyObject construction/destruction ?

Thanks,
		Stefan





More information about the Python-list mailing list