Home
last modified time | relevance | path

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

12

/external/python/cpython3/Lib/test/
Dtest_tracemalloc.py4 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)
89 if tracemalloc.is_tracing():
92 tracemalloc.start(1)
95 tracemalloc.stop()
[all …]
Dtest_embed.py432 tracemalloc=0,
/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 …]
Ddevmode.rst85 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
Ddebug.rst21 tracemalloc.rst
/external/python/pycparser/utils/internal/
Dmemprofiling.py93 import tracemalloc
95 tracemalloc.start()
102 snapshot = tracemalloc.take_snapshot()
/external/python/cpython3/Python/
Dinitconfig.c623 config->tracemalloc = -1; in _PyConfig_InitCompatConfig()
699 config->tracemalloc = 0; in PyConfig_InitIsolatedConfig()
810 COPY_ATTR(tracemalloc); in _PyConfig_Copy()
916 SET_ITEM_INT(tracemalloc); in config_as_dict()
1386 config->tracemalloc = nframe; in config_init_tracemalloc()
1408 config->tracemalloc = nframe; in config_init_tracemalloc()
1463 if (config->tracemalloc < 0) { in config_read_complex_options()
1777 if (config->tracemalloc < 0) { in config_read()
1778 config->tracemalloc = 0; in config_read()
2559 assert(config->tracemalloc >= 0); in PyConfig_Read()
Dpylifecycle.c1019 if (_PyTraceMalloc_Init(config->tracemalloc) < 0) { in init_interp_main()
/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.rst458 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``.
Dinit_config.rst661 .. c:member:: int tracemalloc
663 If non-zero, call :func:`tracemalloc.start` at startup.
1017 * Enable optional features like :mod:`faulthandler` and :mod:`tracemalloc`;
/external/python/cpython3/Include/cpython/
Dinitconfig.h156 int tracemalloc; member
/external/python/cpython3/Doc/using/
Dcmdline.rst434 * ``-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.
465 The ``-X showrefcount`` and ``-X tracemalloc`` options.
745 Python memory allocations using the :mod:`tracemalloc` module. The value of
748 frame. See the :func:`tracemalloc.start` for more information.
/external/tensorflow/third_party/toolchains/preconfig/win_1803/py38/
DBUILD197 "python_include/tracemalloc.h",
206 …_include/traceback.h" && cp -f "c:/Python38/include/tracemalloc.h" "$(@D)/python_include/tracemall…
/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.rst1479 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
/external/python/cpython3/Misc/NEWS.d/
D3.9.0b2.rst316 Added :func:`tracemalloc.reset_peak` to set the peak size of traced memory
D3.8.0a4.rst83 :mod:`tracemalloc` to get the traceback where a memory block has been
967 Fix ``test_sys.test_getallocatedblocks()`` when :mod:`tracemalloc` is
D3.6.0a1.rst226 :mod:`tracemalloc` module to get the traceback where a memory block was
1444 :func:`linecache.getline` and :func:`tracemalloc.get_object_traceback` to be
1468 :mod:`tracemalloc` module. Add :c:func:`_PyTraceMalloc_GetTraceback` to get
1531 tracemalloc to get the traceback where source object was allocated.
D3.5.4rc1.rst222 Fix decrementing a borrowed reference in tracemalloc.
D3.8.0a1.rst2471 The warnings module now suggests to enable tracemalloc if the source is
2472 specified, the tracemalloc module is available, but tracemalloc is not
2618 tracemalloc now tries to update the traceback when an object is reused from
3751 tracemalloc: PYTHONTRACEMALLOC=0 environment variable and -X tracemalloc=0
3752 command line option are now allowed to disable explicitly tracemalloc at
/external/python/cpython3/Programs/
D_testembed.c503 config.tracemalloc = 2; in test_init_from_config()
/external/python/cpython3/Lib/test/support/
D__init__.py2696 import tracemalloc
2700 if tracemalloc.is_tracing():
/external/python/cpython3/Doc/tools/
Dsusp-ignored.csv238 library/tracemalloc,,:limit,"for index, stat in enumerate(top_stats[:limit], 1):"

12