/external/python/cpython3/Lib/test/ |
D | test_tracemalloc.py | 4 import tracemalloc 39 nframe = tracemalloc.get_traceback_limit() 43 return data, tracemalloc.Traceback(frames, min(len(frames), nframe)) 62 snapshot = tracemalloc.Snapshot(raw_traces, traceback_limit) 74 snapshot2 = tracemalloc.Snapshot(raw_traces2, traceback_limit) 79 return tracemalloc._Frame((filename, lineno)) 82 return tracemalloc.Traceback(frames) 94 return repr(tracemalloc.Traceback(*args)) 112 if tracemalloc.is_tracing(): 115 tracemalloc.start(1) [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 | devmode.rst | 88 The Python Development Mode does not enable the :mod:`tracemalloc` module by 90 large. Enabling the :mod:`tracemalloc` module provides additional information 143 ResourceWarning: Enable tracemalloc to get the object allocation traceback 145 In addition, enabling :mod:`tracemalloc` shows the line where the file was 150 $ python -X dev -X tracemalloc=5 script.py README.rst 206 ResourceWarning: Enable tracemalloc to get the object allocation traceback
|
D | debug.rst | 21 tracemalloc.rst
|
/external/python/pycparser/utils/internal/ |
D | memprofiling.py | 93 import tracemalloc 95 tracemalloc.start() 102 snapshot = tracemalloc.take_snapshot()
|
/external/python/cpython3/Python/ |
D | tracemalloc.c | 15 #define tracemalloc_config _PyRuntime.tracemalloc.config 30 #define allocators _PyRuntime.tracemalloc.allocators 37 # define tables_lock _PyRuntime.tracemalloc.tables_lock 61 #define tracemalloc_empty_traceback _PyRuntime.tracemalloc.empty_traceback 74 #define tracemalloc_traced_memory _PyRuntime.tracemalloc.traced_memory 75 #define tracemalloc_peak_traced_memory _PyRuntime.tracemalloc.peak_traced_memory 76 #define tracemalloc_filenames _PyRuntime.tracemalloc.filenames 77 #define tracemalloc_traceback _PyRuntime.tracemalloc.traceback 78 #define tracemalloc_tracebacks _PyRuntime.tracemalloc.tracebacks 79 #define tracemalloc_traces _PyRuntime.tracemalloc.traces [all …]
|
D | initconfig.c | 62 SPEC(tracemalloc, UINT), 700 assert(config->tracemalloc >= 0); in config_check_consistency() 815 config->tracemalloc = -1; in _PyConfig_InitCompatConfig() 904 config->tracemalloc = 0; in PyConfig_InitIsolatedConfig() 1745 config->tracemalloc = nframe; in config_init_tracemalloc() 1767 config->tracemalloc = nframe; in config_init_tracemalloc() 1898 if (config->tracemalloc < 0) { in config_read_complex_options() 2262 if (config->tracemalloc < 0) { in config_read() 2263 config->tracemalloc = 0; in config_read()
|
D | pylifecycle.c | 1217 if (config->tracemalloc) { in init_interp_main() 1218 if (_PyTraceMalloc_Start(config->tracemalloc) < 0) { in init_interp_main()
|
/external/cronet/stable/third_party/protobuf/python/google/protobuf/internal/ |
D | unknown_fields_test.py | 54 import tracemalloc # pylint: disable=g-import-not-at-top 321 tracemalloc.start() 322 snapshot1 = tracemalloc.take_snapshot() 324 snapshot2 = tracemalloc.take_snapshot() 326 tracemalloc.stop()
|
/external/cronet/tot/third_party/protobuf/python/google/protobuf/internal/ |
D | unknown_fields_test.py | 54 import tracemalloc # pylint: disable=g-import-not-at-top 321 tracemalloc.start() 322 snapshot1 = tracemalloc.take_snapshot() 324 snapshot2 = tracemalloc.take_snapshot() 326 tracemalloc.stop()
|
/external/protobuf/python/google/protobuf/internal/ |
D | unknown_fields_test.py | 54 import tracemalloc # pylint: disable=g-import-not-at-top 321 tracemalloc.start() 322 snapshot1 = tracemalloc.take_snapshot() 324 snapshot2 = tracemalloc.take_snapshot() 326 tracemalloc.stop()
|
/external/python/cpython3/Lib/ |
D | warnings.py | 56 import tracemalloc 65 suggest_tracemalloc = not tracemalloc.is_tracing() 66 tb = tracemalloc.get_object_traceback(msg.source)
|
/external/python/cpython3/Include/cpython/ |
D | initconfig.h | 144 int tracemalloc; member
|
/external/python/cpython3/Doc/c-api/ |
D | memory.rst | 563 On error, the debug hooks use the :mod:`tracemalloc` module to get the 565 if :mod:`tracemalloc` is tracing Python memory allocations and the memory block 622 :mod:`tracemalloc` to get the traceback where a memory block was allocated. 698 tracemalloc C API 705 Track an allocated memory block in the :mod:`tracemalloc` module. 708 store the trace). Return ``-2`` if tracemalloc is disabled. 714 Untrack an allocated memory block in the :mod:`tracemalloc` module. 717 Return ``-2`` if tracemalloc is disabled, otherwise return ``0``.
|
D | init_config.rst | 1235 .. c:member:: int tracemalloc 1237 Enable tracemalloc? 1239 If non-zero, call :func:`tracemalloc.start` at startup. 1241 Set by :option:`-X tracemalloc=N <-X>` command line option and by the 1618 * Enable optional features like :mod:`faulthandler` and :mod:`tracemalloc`;
|
/external/python/cpython3/Include/internal/ |
D | pycore_runtime.h | 306 struct _tracemalloc_runtime_state tracemalloc; member
|
D | pycore_runtime_init.h | 177 .tracemalloc = _tracemalloc_runtime_state_INIT, \
|
/external/python/cpython3/Doc/using/ |
D | cmdline.rst | 515 * ``-X tracemalloc`` to start tracing Python memory allocations using the 516 :mod:`tracemalloc` module. By default, only the most recent frame is 517 stored in a traceback of a trace. Use ``-X tracemalloc=NFRAME`` to start 519 See :func:`tracemalloc.start` and :envvar:`PYTHONTRACEMALLOC` 946 Python memory allocations using the :mod:`tracemalloc` module. The value of 950 See the :func:`tracemalloc.start` function for more information. 951 This is equivalent to setting the :option:`-X` ``tracemalloc`` option.
|
/external/tensorflow/tensorflow/tools/toolchains/win_1803/py38/ |
D | BUILD | 190 "python_include/tracemalloc.h", 199 …_include/traceback.h" && cp -f "c:/Python38/include/tracemalloc.h" "$(@D)/python_include/tracemall…
|
/external/tensorflow/tensorflow/tools/toolchains/win_1803/py39/ |
D | BUILD | 239 "python_include/tracemalloc.h", 248 …_include/traceback.h" && cp -f "c:/Python39/include/tracemalloc.h" "$(@D)/python_include/tracemall…
|
/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):: 1587 tracemalloc section in Improved Modules 1590 The :mod:`tracemalloc` module now supports tracing memory allocations in 1593 The new :class:`~tracemalloc.DomainFilter` filter class has been added 1707 When a :exc:`ResourceWarning` warning is logged, the :mod:`tracemalloc` module is now 1720 Output of the command ``python3.6 -Wd -X tracemalloc=5 example.py``:: 1731 :mod:`tracemalloc` is tracing Python memory allocations and if the
|
/external/python/cpython3/ |
D | Android.bp | 362 "Python/tracemalloc.c",
|
/external/python/cpython3/Lib/test/support/ |
D | __init__.py | 1850 import tracemalloc 1854 if tracemalloc.is_tracing():
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.8.0a4.rst | 83 :mod:`tracemalloc` to get the traceback where a memory block has been 967 Fix ``test_sys.test_getallocatedblocks()`` when :mod:`tracemalloc` is
|
/external/python/cpython3/Programs/ |
D | _testembed.c | 651 config.tracemalloc = 2; in test_init_from_config()
|