debugging memory management via C API

S

Stefan Seefeld

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top