summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-02-10 06:35:38 (GMT)
committerBenjamin Peterson <benjamin@python.org>2017-02-10 06:35:38 (GMT)
commite5f2cc67be80961126e9fbf01c80620130fb4817 (patch)
tree7d43021a8388d4cee882622eddbba9aa4d7aaf8d /Doc
parentfe4ff83049fc66b823252476f2cc173d9d493d84 (diff)
parent35a1f7f62df4380c8fbc5b6d64ee6bb8162d69f4 (diff)
downloadcpython-e5f2cc67be80961126e9fbf01c80620130fb4817.zip
cpython-e5f2cc67be80961126e9fbf01c80620130fb4817.tar.gz
cpython-e5f2cc67be80961126e9fbf01c80620130fb4817.tar.bz2
merge 3.6
Diffstat (limited to 'Doc')
-rw-r--r--Doc/using/cmdline.rst12
1 files changed, 7 insertions, 5 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index c0e64d6..195f63f 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -396,21 +396,23 @@ Miscellaneous options
defines the following possible values:
* ``-X faulthandler`` to enable :mod:`faulthandler`;
- * ``-X showrefcount`` to enable the output of the total reference count
- and memory blocks (only works on debug builds);
+ * ``-X showrefcount`` to output the total reference count and number of used
+ 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
:mod:`tracemalloc` module. By default, only the most recent frame is
stored in a traceback of a trace. Use ``-X tracemalloc=NFRAME`` to start
tracing with a traceback limit of *NFRAME* frames. See the
:func:`tracemalloc.start` for more information.
- * ``-X showalloccount`` to enable the output of the total count of allocated
- objects for each type (only works when built with ``COUNT_ALLOCS`` defined);
+ * ``-X showalloccount`` to output the total count of allocated objects for
+ 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
:data:`sys._xoptions` dictionary.
.. versionchanged:: 3.2
- It is now allowed to pass :option:`-X` with CPython.
+ The :option:`-X` option was added.
.. versionadded:: 3.3
The ``-X faulthandler`` option.