PEP 454: API inspired by the faulthandler module

This commit is contained in:
Victor Stinner 2013-09-05 23:23:35 +02:00
parent 2a8d38e264
commit a423604955
1 changed files with 6 additions and 0 deletions

View File

@ -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
===