PEP 454: tracemalloc is not ignored by default
This commit is contained in:
parent
6317f57fea
commit
db71db8e68
|
@ -72,15 +72,15 @@ API
|
|||
To trace most memory blocks allocated by Python, the module should be
|
||||
enabled as early as possible by setting the ``PYTHONTRACEMALLOC``
|
||||
environment variable to ``1``, or by using ``-X tracemalloc`` command
|
||||
line option. The ``tracemalloc.enable`` function can also be called to
|
||||
line option. The ``tracemalloc.enable()`` function can also be called to
|
||||
start tracing Python memory allocations.
|
||||
|
||||
By default, a trace of an allocated memory block only stores one frame.
|
||||
Use the ``set_traceback_limit()`` function to store more frames.
|
||||
|
||||
Python memory blocks allocated in the ``tracemalloc`` module are ignored
|
||||
by default using a filter. Use the ``clear_filters()`` function to see
|
||||
trace also these memory allocations.
|
||||
Python memory blocks allocated in the ``tracemalloc`` module are also
|
||||
traced by default. Use ``add_exclude_filter(tracemalloc.__file__)`` to
|
||||
ignore these these memory allocations.
|
||||
|
||||
At fork, the module is automatically disabled in the child process.
|
||||
|
||||
|
|
Loading…
Reference in New Issue