Home
last modified time | relevance | path

Searched refs:tracemalloc (Results 1 - 8 of 8) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_tracemalloc.py4 import tracemalloc namespace
36 nframe = tracemalloc.get_traceback_limit()
40 return data, tracemalloc.Traceback(frames, min(len(frames), nframe))
59 snapshot = tracemalloc.Snapshot(raw_traces, traceback_limit)
71 snapshot2 = tracemalloc.Snapshot(raw_traces2, traceback_limit)
76 return tracemalloc._Frame((filename, lineno))
79 return tracemalloc.Traceback(frames)
91 return repr(tracemalloc.Traceback(*args))
109 if tracemalloc.is_tracing():
110 self.skipTest("tracemalloc mus
[all...]
H A Dtest_embed.py445 'tracemalloc': 0,
529 tracemalloc=0, variable in InitConfigTests
839 'tracemalloc': 2,
901 'tracemalloc': 2,
932 'tracemalloc': 2,
/third_party/python/Python/
H A Dinitconfig.c86 -X tracemalloc: start tracing Python memory allocations using the\n\
87 tracemalloc module. By default, only the most recent frame is stored in a\n\
88 traceback of a trace. Use -X tracemalloc=NFRAME to start tracing with a\n\
644 assert(config->tracemalloc >= 0); in config_check_consistency()
749 config->tracemalloc = -1; in _PyConfig_InitCompatConfig()
837 config->tracemalloc = 0; in PyConfig_InitIsolatedConfig()
948 COPY_ATTR(tracemalloc); in _PyConfig_Copy()
1058 SET_ITEM_INT(tracemalloc); in _PyConfig_AsDict()
1339 GET_UINT(tracemalloc); in _PyConfig_FromDict()
1708 config->tracemalloc in config_init_tracemalloc()
[all...]
H A Dpylifecycle.c1149 if (_PyTraceMalloc_Init(config->tracemalloc) < 0) { in init_interp_main()
1150 return _PyStatus_ERR("can't initialize tracemalloc"); in init_interp_main()
1862 /* Disable tracemalloc after all Python objects have been destroyed, in Py_FinalizeEx()
1863 so it is possible to use tracemalloc in objects destructor. */ in Py_FinalizeEx()
/third_party/python/Lib/
H A Dwarnings.py56 import tracemalloc namespace
60 # don't suggest to enable tracemalloc if it's not available
64 tracing = tracemalloc.is_tracing()
66 tb = tracemalloc.get_object_traceback(msg.source)
68 # When a warning is logged during Python shutdown, tracemalloc
89 s += (f'{category}: Enable tracemalloc to get the object '
531 # Passing source= here means that if the user happens to have tracemalloc
534 # coroutine origin tracking *and* tracemalloc enabled, they'll get two
/third_party/python/Include/cpython/
H A Dinitconfig.h144 int tracemalloc; member
/third_party/python/Lib/test/support/
H A D__init__.py1788 Run code in a subinterpreter. Raise unittest.SkipTest if the tracemalloc
1792 # sub-interpreters, the tracemalloc module uses these functions internally
1794 import tracemalloc namespace
1798 if tracemalloc.is_tracing():
1800 "if tracemalloc module is tracing "
/third_party/python/Programs/
H A D_testembed.c592 config.tracemalloc = 2; in test_init_from_config()

Completed in 16 milliseconds