PEP 454: cleanup
This commit is contained in:
parent
98900f22d2
commit
ae96a9de23
|
@ -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
|
||||
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
|
||||
following information:
|
||||
|
||||
* Traceback where an object was allocated
|
||||
* Statistics on allocated memory blocks per filename and per line
|
||||
number: total size, number and average size of allocated memory blocks
|
||||
* 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
|
||||
faulthandler module: ``enable()``, ``disable()`` and ``is_enabled()``
|
||||
|
|
Loading…
Reference in New Issue