Home
last modified time | relevance | path

Searched refs:tracemalloc (Results 1 – 24 of 24) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_tracemalloc.py4 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/
Dtracemalloc.rst1 :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 …]
Ddebug.rst18 tracemalloc.rst
Dtest.rst1135 :mod:`tracemalloc` is enabled.
/external/python/cpython3/Include/
Dpystate.h38 int tracemalloc; /* PYTHONTRACEMALLOC, -X tracemalloc=N */ member
86 .tracemalloc = -1, \
/external/python/cpython3/Lib/
Dwarnings.py56 import tracemalloc
64 tracing = tracemalloc.is_tracing()
66 tb = tracemalloc.get_object_traceback(msg.source)
/external/python/cpython3/Doc/c-api/
Dmemory.rst457 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/
Dmain.c1758 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/
Dcmdline.rst414 * ``-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.c449 config.tracemalloc = 2; in test_init_from_config()
/external/python/cpython3/Misc/NEWS.d/
D3.7.2rc1.rst337 The warnings module now suggests to enable tracemalloc if the source is
338 specified, the tracemalloc module is available, but tracemalloc is not
D3.6.0a1.rst226 :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.
D3.5.4rc1.rst222 Fix decrementing a borrowed reference in tracemalloc.
D3.6.3rc1.rst540 Fix decrementing a borrowed reference in tracemalloc.
D3.7.0a3.rst375 Made ``tracemalloc.Traceback`` behave more like the traceback module,
D3.7.0a1.rst2087 Fix decrementing a borrowed reference in tracemalloc.
/external/python/cpython3/Doc/whatsnew/
D3.6.rst123 * 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
D3.4.rst113 * :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
D3.7.rst1463 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__.py2700 import tracemalloc
2704 if tracemalloc.is_tracing():
/external/python/cpython3/Python/
Dpylifecycle.c959 if (_PyTraceMalloc_Init(interp->core_config.tracemalloc) < 0) in _Py_InitializeMainInterpreter()
/external/python/cpython3/Doc/tools/
Dsusp-ignored.csv230 library/tracemalloc,,:limit,"for index, stat in enumerate(top_stats[:limit], 1):"
/external/python/cpython3/Doc/
Dlicense.rst848 The implementation of the hash table used by the :mod:`tracemalloc` is based
/external/python/cpython3/Misc/
DHISTORY2308 - 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