[Python-Dev] PEP 454: tracemalloc (n-th version) (original) (raw)

Victor Stinner victor.stinner at gmail.com
Sun Nov 3 14:34:48 CET 2013


"n-th version": Sorry, I don't remember the version number of the PEP :-)

http://www.python.org/dev/peps/pep-0454/

Lastest changes:

Charles-François doesn't look convinced that disabling temporarily tracing is useful, me neither. Another concern is that it is not possible to disable completly tracing, only disable tracing new allocations, deallocations are still tracing. I chose a simpler API with limitations.

The PEP is not completly different than my first proposition. Even if the latest PEP has fewer functions and classes, it's almost as powerful. I replaced complex classes and high-level API with short examples in the documentation:

http://www.haypocalc.com/tmp/tracemalloc/library/tracemalloc.html#examples

For the implementation of tracemalloc, see:

http://bugs.python.org/issue18874

Rietveld link to the latest patch:

http://bugs.python.org/review/18874/#ps9797

Victor



More information about the Python-Dev mailing list