memory leakage detection

H

Haigu

Hi here,
I'm writting a project with python embedded in C++. Since there are too
much C++ code, I'm not sure of getting the reference countings correct, nor
of the existence of circular references. So is there any way to detect
memory leaks in python???
 
D

David Rushby

Haigu said:
Hi here,
I'm writting a project with python embedded in C++. Since there are too
much C++ code, I'm not sure of getting the reference countings correct, nor
of the existence of circular references. So is there any way to detect
memory leaks in python???

Take a look at the Misc/SpecialBuilds.txt file in the Python source
distribution, especially the section about COUNT_ALLOCS.

Also:
http://mail.python.org/pipermail/python-dev/2003-August/037664.html
http://mail.python.org/pipermail/doc-sig/2001-July/001951.html
 

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

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,163
Latest member
Sasha15427
Top