mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
merge 3.6
This commit is contained in:
commit
e5f2cc67be
1 changed files with 7 additions and 5 deletions
|
@ -396,21 +396,23 @@ Miscellaneous options
|
||||||
defines the following possible values:
|
defines the following possible values:
|
||||||
|
|
||||||
* ``-X faulthandler`` to enable :mod:`faulthandler`;
|
* ``-X faulthandler`` to enable :mod:`faulthandler`;
|
||||||
* ``-X showrefcount`` to enable the output of the total reference count
|
* ``-X showrefcount`` to output the total reference count and number of used
|
||||||
and memory blocks (only works on debug builds);
|
memory blocks when the program finishes or after each statement in the
|
||||||
|
interactive interpreter. This only works on debug builds.
|
||||||
* ``-X tracemalloc`` to start tracing Python memory allocations using the
|
* ``-X tracemalloc`` to start tracing Python memory allocations using the
|
||||||
:mod:`tracemalloc` module. By default, only the most recent frame is
|
:mod:`tracemalloc` module. By default, only the most recent frame is
|
||||||
stored in a traceback of a trace. Use ``-X tracemalloc=NFRAME`` to start
|
stored in a traceback of a trace. Use ``-X tracemalloc=NFRAME`` to start
|
||||||
tracing with a traceback limit of *NFRAME* frames. See the
|
tracing with a traceback limit of *NFRAME* frames. See the
|
||||||
:func:`tracemalloc.start` for more information.
|
:func:`tracemalloc.start` for more information.
|
||||||
* ``-X showalloccount`` to enable the output of the total count of allocated
|
* ``-X showalloccount`` to output the total count of allocated objects for
|
||||||
objects for each type (only works when built with ``COUNT_ALLOCS`` defined);
|
each type when the program finishes. This only works when Python was built with
|
||||||
|
``COUNT_ALLOCS`` defined.
|
||||||
|
|
||||||
It also allows passing arbitrary values and retrieving them through the
|
It also allows passing arbitrary values and retrieving them through the
|
||||||
:data:`sys._xoptions` dictionary.
|
:data:`sys._xoptions` dictionary.
|
||||||
|
|
||||||
.. versionchanged:: 3.2
|
.. versionchanged:: 3.2
|
||||||
It is now allowed to pass :option:`-X` with CPython.
|
The :option:`-X` option was added.
|
||||||
|
|
||||||
.. versionadded:: 3.3
|
.. versionadded:: 3.3
|
||||||
The ``-X faulthandler`` option.
|
The ``-X faulthandler`` option.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue