diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-07-03 18:03:53 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-07-03 18:03:53 (GMT) |
commit | 7e160ce356036bccda2608d9ee10bfe276dfa97a (patch) | |
tree | 8c5ff466786f788afa0d8400c8d8c57211e85cdb /Doc/using/cmdline.rst | |
parent | 6c94d10a193ffdaad9d3b7c2376d9f4de776575f (diff) | |
download | cpython-7e160ce356036bccda2608d9ee10bfe276dfa97a.zip cpython-7e160ce356036bccda2608d9ee10bfe276dfa97a.tar.gz cpython-7e160ce356036bccda2608d9ee10bfe276dfa97a.tar.bz2 |
Issue #23034: The output of a special Python build with defined COUNT_ALLOCS,
SHOW_ALLOC_COUNT or SHOW_TRACK_COUNT macros is now off by default. It can
be re-enabled using the "-X showalloccount" option. It now outputs to stderr
instead of stdout.
Diffstat (limited to 'Doc/using/cmdline.rst')
-rw-r--r-- | Doc/using/cmdline.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst index 49fe3a0..905f14d 100644 --- a/Doc/using/cmdline.rst +++ b/Doc/using/cmdline.rst @@ -397,6 +397,8 @@ Miscellaneous options 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); It also allows passing arbitrary values and retrieving them through the :data:`sys._xoptions` dictionary. @@ -410,6 +412,9 @@ Miscellaneous options .. versionadded:: 3.4 The ``-X showrefcount`` and ``-X tracemalloc`` options. + .. versionadded:: 3.6 + The ``-X showalloccount`` option. + Options you shouldn't use ~~~~~~~~~~~~~~~~~~~~~~~~~ |