/external/python/cpython3/Lib/test/ |
D | test_tracemalloc.py | 4 import tracemalloc 34 nframe = tracemalloc.get_traceback_limit() 38 return data, tracemalloc.Traceback(frames) 57 snapshot = tracemalloc.Snapshot(raw_traces, traceback_limit) 69 snapshot2 = tracemalloc.Snapshot(raw_traces2, traceback_limit) 74 return tracemalloc._Frame((filename, lineno)) 77 return tracemalloc.Traceback(frames) 88 if tracemalloc.is_tracing(): 91 tracemalloc.start(1) 94 tracemalloc.stop() [all …]
|
/external/python/cpython3/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 | debug.rst | 18 tracemalloc.rst
|
D | test.rst | 1135 :mod:`tracemalloc` is enabled.
|
/external/python/cpython3/Include/ |
D | pystate.h | 38 int tracemalloc; /* PYTHONTRACEMALLOC, -X tracemalloc=N */ member 86 .tracemalloc = -1, \
|
/external/python/cpython3/Lib/ |
D | warnings.py | 56 import tracemalloc 64 tracing = tracemalloc.is_tracing() 66 tb = tracemalloc.get_object_traceback(msg.source)
|
/external/python/cpython3/Doc/c-api/ |
D | memory.rst | 457 On error, the debug hooks use the :mod:`tracemalloc` module to get the 459 displayed if :mod:`tracemalloc` is tracing Python memory allocations and the 469 On error, the debug hooks now use :mod:`tracemalloc` to get the traceback 524 tracemalloc C API 531 Track an allocated memory block in the :mod:`tracemalloc` module. 534 store the trace). Return ``-2`` if tracemalloc is disabled. 540 Untrack an allocated memory block in the :mod:`tracemalloc` module. 543 Return ``-2`` if tracemalloc is disabled, otherwise return ``0``.
|
/external/python/cpython3/Modules/ |
D | main.c | 1758 config->tracemalloc = nframe; in config_init_tracemalloc() 1780 config->tracemalloc = nframe; in config_init_tracemalloc() 1998 if (config->tracemalloc < 0) { in config_read_complex_options() 2416 if (config->tracemalloc < 0) { in _PyCoreConfig_Read() 2417 config->tracemalloc = 0; in _PyCoreConfig_Read() 2505 COPY_ATTR(tracemalloc); in _PyCoreConfig_Copy() 2587 SET_ITEM_INT(tracemalloc); in _PyCoreConfig_AsDict()
|
/external/python/cpython3/Doc/using/ |
D | cmdline.rst | 414 * ``-X tracemalloc`` to start tracing Python memory allocations using the 415 :mod:`tracemalloc` module. By default, only the most recent frame is 416 stored in a traceback of a trace. Use ``-X tracemalloc=NFRAME`` to start 418 :func:`tracemalloc.start` for more information. 456 The ``-X showrefcount`` and ``-X tracemalloc`` options. 691 Python memory allocations using the :mod:`tracemalloc` module. The value of 694 frame. See the :func:`tracemalloc.start` for more information.
|
/external/python/cpython3/Programs/ |
D | _testembed.c | 449 config.tracemalloc = 2; in test_init_from_config()
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.7.2rc1.rst | 337 The warnings module now suggests to enable tracemalloc if the source is 338 specified, the tracemalloc module is available, but tracemalloc is not
|
D | 3.6.0a1.rst | 226 :mod:`tracemalloc` module to get the traceback where a memory block was 1445 :func:`linecache.getline` and :func:`tracemalloc.get_object_traceback` to be 1469 :mod:`tracemalloc` module. Add :c:func:`_PyTraceMalloc_GetTraceback` to get 1532 tracemalloc to get the traceback where source object was allocated.
|
D | 3.5.4rc1.rst | 222 Fix decrementing a borrowed reference in tracemalloc.
|
D | 3.6.3rc1.rst | 540 Fix decrementing a borrowed reference in tracemalloc.
|
D | 3.7.0a3.rst | 375 Made ``tracemalloc.Traceback`` behave more like the traceback module,
|
D | 3.7.0a1.rst | 2087 Fix decrementing a borrowed reference in tracemalloc.
|
/external/python/cpython3/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 | 1463 tracemalloc section in Improved Modules 1466 :class:`tracemalloc.Traceback` behaves more like regular tracebacks, 1468 :meth:`Traceback.format() <tracemalloc.Traceback.format>` 1659 The :mod:`tracemalloc` now exposes a C API through the new 2359 * :class:`tracemalloc.Traceback` frames are now sorted from oldest to most
|
/external/python/cpython3/Lib/test/support/ |
D | __init__.py | 2700 import tracemalloc 2704 if tracemalloc.is_tracing():
|
/external/python/cpython3/Python/ |
D | pylifecycle.c | 959 if (_PyTraceMalloc_Init(interp->core_config.tracemalloc) < 0) in _Py_InitializeMainInterpreter()
|
/external/python/cpython3/Doc/tools/ |
D | susp-ignored.csv | 230 library/tracemalloc,,:limit,"for index, stat in enumerate(top_stats[:limit], 1):"
|
/external/python/cpython3/Doc/ |
D | license.rst | 848 The implementation of the hash table used by the :mod:`tracemalloc` is based
|
/external/python/cpython3/Misc/ |
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
|