PEP 454: API inspired by the faulthandler module
This commit is contained in:
parent
2a8d38e264
commit
a423604955
|
@ -56,6 +56,12 @@ following information:
|
|||
* Location of a Python memory allocation: size in bytes, Python filename
|
||||
and line number
|
||||
|
||||
The tracemalloc module has an API close the the faulthandler module:
|
||||
``enable()``, ``disable()`` and ``is_enabled()`` functions, an
|
||||
environment variable (``PYTHONFAULTHANDLER`` and ``PYTHONTRACEMALLOC``),
|
||||
a ``-X`` command line option (``-X faulthandler`` and ``-X
|
||||
tracemalloc``).
|
||||
|
||||
|
||||
API
|
||||
===
|
||||
|
|
Loading…
Reference in New Issue