PEP 454: cleanup

This commit is contained in:
Victor Stinner 2013-10-27 18:26:47 +01:00
parent 98900f22d2
commit ae96a9de23
1 changed files with 2 additions and 2 deletions

View File

@ -55,14 +55,14 @@ the traceback of all Python threads on a crash, here is the idea is to
get the traceback of the current Python thread when a memory block is get the traceback of the current Python thread when a memory block is
allocated by Python. allocated by Python.
This PEP proposes to add a new ``tracemalloc`` module, as a debug tool This PEP proposes to add a new ``tracemalloc`` module, a debug tool
to trace memory blocks allocated by Python. The module provides the to trace memory blocks allocated by Python. The module provides the
following information: following information:
* Traceback where an object was allocated
* Statistics on allocated memory blocks per filename and per line * Statistics on allocated memory blocks per filename and per line
number: total size, number and average size of allocated memory blocks number: total size, number and average size of allocated memory blocks
* Computed differences between two snapshots to detect memory leaks * Computed differences between two snapshots to detect memory leaks
* Traceback where a memory block was allocated
The API of the tracemalloc module is similar to the API of the The API of the tracemalloc module is similar to the API of the
faulthandler module: ``enable()``, ``disable()`` and ``is_enabled()`` faulthandler module: ``enable()``, ``disable()`` and ``is_enabled()``