/third_party/python/Lib/test/ |
D | test_tracemalloc.py | 4 import tracemalloc 35 nframe = tracemalloc.get_traceback_limit() 39 return data, tracemalloc.Traceback(frames, min(len(frames), nframe)) 58 snapshot = tracemalloc.Snapshot(raw_traces, traceback_limit) 70 snapshot2 = tracemalloc.Snapshot(raw_traces2, traceback_limit) 75 return tracemalloc._Frame((filename, lineno)) 78 return tracemalloc.Traceback(frames) 90 return repr(tracemalloc.Traceback(*args)) 108 if tracemalloc.is_tracing(): 111 tracemalloc.start(1) [all …]
|
D | test_embed.py | 432 tracemalloc=0,
|
/third_party/python/Doc/library/ |
D | tracemalloc.rst | 1 :mod:`tracemalloc` --- Trace memory allocations 4 .. module:: tracemalloc 9 **Source code:** :source:`Lib/tracemalloc.py` 13 The tracemalloc module is a debug tool to trace memory blocks allocated by 23 variable to ``1``, or by using :option:`-X` ``tracemalloc`` command line 24 option. The :func:`tracemalloc.start` function can be called at runtime to 30 :option:`-X` ``tracemalloc=25`` command line option. 41 import tracemalloc 43 tracemalloc.start() 47 snapshot = tracemalloc.take_snapshot() [all …]
|
D | devmode.rst | 85 The Python Development Mode does not enable the :mod:`tracemalloc` module by 87 large. Enabling the :mod:`tracemalloc` module provides additional information 137 ResourceWarning: Enable tracemalloc to get the object allocation traceback 139 In addition, enabling :mod:`tracemalloc` shows the line where the file was 144 $ python3 -X dev -X tracemalloc=5 script.py README.rst 200 ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
D | debug.rst | 21 tracemalloc.rst
|
D | test.rst | 1247 :mod:`tracemalloc` is enabled.
|
/third_party/python/Lib/ |
D | warnings.py | 56 import tracemalloc 64 tracing = tracemalloc.is_tracing() 66 tb = tracemalloc.get_object_traceback(msg.source)
|
/third_party/python/Doc/c-api/ |
D | memory.rst | 458 On error, the debug hooks use the :mod:`tracemalloc` module to get the 460 displayed if :mod:`tracemalloc` is tracing Python memory allocations and the 470 On error, the debug hooks now use :mod:`tracemalloc` to get the traceback 531 tracemalloc C API 538 Track an allocated memory block in the :mod:`tracemalloc` module. 541 store the trace). Return ``-2`` if tracemalloc is disabled. 547 Untrack an allocated memory block in the :mod:`tracemalloc` module. 550 Return ``-2`` if tracemalloc is disabled, otherwise return ``0``.
|
D | init_config.rst | 661 .. c:member:: int tracemalloc 663 If non-zero, call :func:`tracemalloc.start` at startup. 1017 * Enable optional features like :mod:`faulthandler` and :mod:`tracemalloc`;
|
/third_party/python/Python/ |
D | initconfig.c | 631 config->tracemalloc = -1; in _PyConfig_InitCompatConfig() 711 config->tracemalloc = 0; in PyConfig_InitIsolatedConfig() 822 COPY_ATTR(tracemalloc); in _PyConfig_Copy() 928 SET_ITEM_INT(tracemalloc); in config_as_dict() 1398 config->tracemalloc = nframe; in config_init_tracemalloc() 1420 config->tracemalloc = nframe; in config_init_tracemalloc() 1517 if (config->tracemalloc < 0) { in config_read_complex_options() 1837 if (config->tracemalloc < 0) { in config_read() 1838 config->tracemalloc = 0; in config_read() 2619 assert(config->tracemalloc >= 0); in PyConfig_Read()
|
D | pylifecycle.c | 1019 if (_PyTraceMalloc_Init(config->tracemalloc) < 0) { in init_interp_main()
|
/third_party/python/Include/cpython/ |
D | initconfig.h | 156 int tracemalloc; member
|
/third_party/python/Doc/using/ |
D | cmdline.rst | 434 * ``-X tracemalloc`` to start tracing Python memory allocations using the 435 :mod:`tracemalloc` module. By default, only the most recent frame is 436 stored in a traceback of a trace. Use ``-X tracemalloc=NFRAME`` to start 438 :func:`tracemalloc.start` for more information. 468 The ``-X showrefcount`` and ``-X tracemalloc`` options. 758 Python memory allocations using the :mod:`tracemalloc` module. The value of 761 frame. See the :func:`tracemalloc.start` for more information.
|
/third_party/python/Doc/whatsnew/ |
D | 3.6.rst | 123 * The :mod:`tracemalloc` module has been significantly reworked 667 :mod:`tracemalloc` module to get the traceback where a memory block was 671 ``python3.6 -X tracemalloc=5`` (store 5 frames in traces):: 1583 tracemalloc section in Improved Modules 1586 The :mod:`tracemalloc` module now supports tracing memory allocations in 1589 The new :class:`~tracemalloc.DomainFilter` filter class has been added 1703 When a :exc:`ResourceWarning` warning is logged, the :mod:`tracemalloc` module is now 1716 Output of the command ``python3.6 -Wd -X tracemalloc=5 example.py``:: 1727 :mod:`tracemalloc` is tracing Python memory allocations and if the
|
D | 3.4.rst | 113 * :mod:`tracemalloc`: :ref:`Trace Python memory allocations 114 <whatsnew-tracemalloc>` (:pep:`454`). 567 .. _whatsnew-tracemalloc: 570 tracemalloc section in New Modules 573 The new :mod:`tracemalloc` module (defined in :pep:`454`) is a debug tool to 583 :pep:`454` -- Add a new tracemalloc module to trace Python memory allocations
|
D | 3.7.rst | 1479 tracemalloc section in Improved Modules 1482 :class:`tracemalloc.Traceback` behaves more like regular tracebacks, 1484 :meth:`Traceback.format() <tracemalloc.Traceback.format>` 1666 The :mod:`tracemalloc` now exposes a C API through the new 2366 * :class:`tracemalloc.Traceback` frames are now sorted from oldest to most
|
D | 3.9.rst | 686 tracemalloc section in Improved Modules 689 Added :func:`tracemalloc.reset_peak` to set the peak size of traced memory
|
/third_party/python/Programs/ |
D | _testembed.c | 503 config.tracemalloc = 2; in test_init_from_config()
|
/third_party/python/Lib/test/support/ |
D | __init__.py | 2696 import tracemalloc 2700 if tracemalloc.is_tracing():
|
/third_party/python/Doc/tools/ |
D | susp-ignored.csv | 239 library/tracemalloc,,:limit,"for index, stat in enumerate(top_stats[:limit], 1):"
|
/third_party/python/Doc/ |
D | license.rst | 882 The implementation of the hash table used by the :mod:`tracemalloc` is based
|
/third_party/python/Misc/ |
D | NEWS | 134 - bpo-37961: Fix crash in :func:`tracemalloc.Traceback.__repr__` (regressed 1472 - bpo-40630: Added :func:`tracemalloc.reset_peak` to set the peak size of 4631 tracemalloc module. This field indicates the original number of frames 6690 5%. Enable :mod:`tracemalloc` to get the traceback where a memory block 6999 :mod:`tracemalloc` is enabled. 8578 - bpo-29564: The warnings module now suggests to enable tracemalloc if the 8579 source is specified, the tracemalloc module is available, but tracemalloc 8629 - bpo-35053: tracemalloc now tries to update the traceback when an object is 9017 - bpo-34228: tracemalloc: PYTHONTRACEMALLOC=0 environment variable and -X 9018 tracemalloc=0 command line option are now allowed to disable explicitly [all …]
|
D | HISTORY | 2308 - Issue #20616: Add a format() method to tracemalloc.Traceback. 2437 - tracemalloc: Fix slicing traces and fix slicing a traceback. 2439 - Issue #20354: Fix an alignment issue in the tracemalloc module on 64-bit
|
/third_party/python/ |
D | Makefile.pre.in | 1098 $(srcdir)/Include/tracemalloc.h \
|