@@ -396,21 +396,23 @@ Miscellaneous options
396
396
defines the following possible values:
397
397
398
398
* ``-X faulthandler `` to enable :mod: `faulthandler `;
399
- * ``-X showrefcount `` to enable the output of the total reference count
400
- and memory blocks (only works on debug builds);
399
+ * ``-X showrefcount `` to output the total reference count and number of used
400
+ memory blocks when the program finishes or after each statement in the
401
+ interactive interpreter. This only works on debug builds.
401
402
* ``-X tracemalloc `` to start tracing Python memory allocations using the
402
403
:mod: `tracemalloc ` module. By default, only the most recent frame is
403
404
stored in a traceback of a trace. Use ``-X tracemalloc=NFRAME `` to start
404
405
tracing with a traceback limit of *NFRAME * frames. See the
405
406
:func: `tracemalloc.start ` for more information.
406
- * ``-X showalloccount `` to enable the output of the total count of allocated
407
- objects for each type (only works when built with ``COUNT_ALLOCS `` defined);
407
+ * ``-X showalloccount `` to output the total count of allocated objects for
408
+ each type when the program finishes. This only works when Python was built with
409
+ ``COUNT_ALLOCS `` defined.
408
410
409
411
It also allows passing arbitrary values and retrieving them through the
410
412
:data: `sys._xoptions ` dictionary.
411
413
412
414
.. versionchanged :: 3.2
413
- It is now allowed to pass :option: `-X ` with CPython .
415
+ The :option: `-X ` option was added .
414
416
415
417
.. versionadded :: 3.3
416
418
The ``-X faulthandler `` option.
0 commit comments