PEP 454: add link to faulthandler doc

This commit is contained in:
Victor Stinner 2013-09-05 23:29:40 +02:00
parent 9d51af2d8a
commit 3d5f0c8eb7
1 changed files with 7 additions and 5 deletions

View File

@ -56,11 +56,13 @@ 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``).
The API of the tracemalloc module is similar to the API of 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``). See the
`documentation of the faulthandler module
<http://docs.python.org/dev/library/faulthandler.html>`_.
The tracemalloc module has been written for CPython. Other
implementations of Python may not provide it.