8000 cpython/Include/internal/pycore_tracemalloc.h at main · python/cpython · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"fileTree":{"Include/internal":{"items":[{"name":"mimalloc","path":"Include/internal/mimalloc","contentType":"directory"},{"name":"pycore_abstract.h","path":"Include/internal/pycore_abstract.h","contentType":"file"},{"name":"pycore_asdl.h","path":"Include/internal/pycore_asdl.h","contentType":"file"},{"name":"pycore_ast.h","path":"Include/internal/pycore_ast.h","contentType":"file"},{"name":"pycore_ast_state.h","path":"Include/internal/pycore_ast_state.h","contentType":"file"},{"name":"pycore_atexit.h","path":"Include/internal/pycore_atexit.h","contentType":"file"},{"name":"pycore_audit.h","path":"Include/internal/pycore_audit.h","contentType":"file"},{"name":"pycore_backoff.h","path":"Include/internal/pycore_backoff.h","contentType":"file"},{"name":"pycore_bitutils.h","path":"Include/internal/pycore_bitutils.h","contentType":"file"},{"name":"pycore_blocks_output_buffer.h","path":"Include/internal/pycore_blocks_output_buffer.h","contentType":"file"},{"name":"pycore_brc.h","path":"Include/internal/pycore_brc.h","contentType":"file"},{"name":"pycore_bytes_methods.h","path":"Include/internal/pycore_bytes_methods.h","contentType":"file"},{"name":"pycore_bytesobject.h","path":"Include/internal/pycore_bytesobject.h","contentType":"file"},{"name":"pycore_c_array.h","path":"Include/internal/pycore_c_array.h","contentType":"file"},{"name":"pycore_call.h","path":"Include/internal/pycore_call.h","contentType":"file"},{"name":"pycore_capsule.h","path":"Include/internal/pycore_capsule.h","contentType":"file"},{"name":"pycore_cell.h","path":"Include/internal/pycore_cell.h","contentType":"file"},{"name":"pycore_ceval.h","path":"Include/internal/pycore_ceval.h","contentType":"file"},{"name":"pycore_ceval_state.h","path":"Include/internal/pycore_ceval_state.h","contentType":"file"},{"name":"pycore_code.h","path":"Include/internal/pycore_code.h","contentType":"file"},{"name":"pycore_codecs.h","path":"Include/internal/pycore_codecs.h","contentType":"file"},{"name":"pycore_compile.h","path":"Include/internal/pycore_compile.h","contentType":"file"},{"name":"pycore_complexobject.h","path":"Include/internal/pycore_complexobject.h","contentType":"file"},{"name":"pycore_condvar.h","path":"Include/internal/pycore_condvar.h","contentType":"file"},{"name":"pycore_context.h","path":"Include/internal/pycore_context.h","contentType":"file"},{"name":"pycore_critical_section.h","path":"Include/internal/pycore_critical_section.h","contentType":"file"},{"name":"pycore_crossinterp.h","path":"Include/internal/pycore_crossinterp.h","contentType":"file"},{"name":"pycore_crossinterp_data_registry.h","path":"Include/internal/pycore_crossinterp_data_registry.h","contentType":"file"},{"name":"pycore_debug_offsets.h","path":"Include/internal/pycore_debug_offsets.h","contentType":"file"},{"name":"pycore_descrobject.h","path":"Include/internal/pycore_descrobject.h","contentType":"file"},{"name":"pycore_dict.h","path":"Include/internal/pycore_dict.h","contentType":"file"},{"name":"pycore_dict_state.h","path":"Include/internal/pycore_dict_state.h","contentType":"file"},{"name":"pycore_dtoa.h","path":"Include/internal/pycore_dtoa.h","contentType":"file"},{"name":"pycore_emscripten_signal.h","path":"Include/internal/pycore_emscripten_signal.h","contentType":"file"},{"name":"pycore_emscripten_trampoline.h","path":"Include/internal/pycore_emscripten_trampoline.h","contentType":"file"},{"name":"pycore_exceptions.h","path":"Include/internal/pycore_exceptions.h","contentType":"file"},{"name":"pycore_faulthandler.h","path":"Include/internal/pycore_faulthandler.h","contentType":"file"},{"name":"pycore_fileutils.h","path":"Include/internal/pycore_fileutils.h","contentType":"file"},{"name":"pycore_fileutils_windows.h","path":"Include/internal/pycore_fileutils_windows.h","contentType":"file"},{"name":"pycore_floatobject.h","path":"Include/internal/pycore_floatobject.h","contentType":"file"},{"name":"pycore_flowgraph.h","path":"Include/internal/pycore_flowgraph.h","contentType":"file"},{"name":"pycore_format.h","path":"Include/internal/pycore_format.h","contentType":"file"},{"name":"pycore_frame.h","path":"Include/internal/pycore_frame.h","contentType":"file"},{"name":"pycore_freelist.h","path":"Include/internal/pycore_freelist.h","contentType":"file"},{"name":"pycore_freelist_state.h","path":"Include/internal/pycore_freelist_state.h","contentType":"file"},{"name":"pycore_function.h","path":"Include/internal/pycore_function.h","contentType":"file"},{"name":"pycore_gc.h","path":"Include/internal/pycore_gc.h","contentType":"file"},{"name":"pycore_genobject.h","path":"Include/internal/pycore_genobject.h","contentType":"file"},{"name":"pycore_getopt.h","path":"Include/internal/pycore_getopt.h","contentType":"file"},{"name":"pycore_gil.h","path":"Include/internal/pycore_gil.h","contentType":"file"},{"name":"pycore_global_objects.h","path":"Include/internal/pycore_global_objects.h","contentType":"file"},{"name":"pycore_global_objects_fini_generated.h","path":"Include/internal/pycore_global_objects_fini_generated.h","contentType":"file"},{"name":"pycore_global_strings.h","path":"Include/internal/pycore_global_strings.h","contentType":"file"},{"name":"pycore_hamt.h","path":"Include/internal/pycore_hamt.h","contentType":"file"},{"name":"pycore_hashtable.h","path":"Include/internal/pycore_hashtable.h","contentType":"file"},{"name":"pycore_import.h","path":"Include/internal/pycore_import.h","contentType":"file"},{"name":"pycore_importdl.h","path":"Include/internal/pycore_importdl.h","contentType":"file"},{"name":"pycore_index_pool.h","path":"Include/internal/pycore_index_pool.h","contentType":"file"},{"name":"pycore_initconfig.h","path":"Include/internal/pycore_initconfig.h","contentType":"file"},{"name":"pycore_instruction_sequence.h","path":"Include/internal/pycore_instruction_sequence.h","contentType":"file"},{"name":"pycore_instruments.h","path":"Include/internal/pycore_instruments.h","contentType":"file"},{"name":"pycore_interp.h","path":"Include/internal/pycore_interp.h","contentType":"file"},{"name":"pycore_interp_structs.h","path":"Include/internal/pycore_interp_structs.h","contentType":"file"},{"name":"pycore_interpframe.h","path":"Include/internal/pycore_interpframe.h","contentType":"file"},{"name":"pycore_interpframe_structs.h","path":"Include/internal/pycore_interpframe_structs.h","contentType":"file"},{"name":"pycore_interpolation.h","path":"Include/internal/pycore_interpolation.h","contentType":"file"},{"name":"pycore_intrinsics.h","path":"Include/internal/pycore_intrinsics.h","contentType":"file"},{"name":"pycore_jit.h","path":"Include/internal/pycore_jit.h","contentType":"file"},{"name":"pycore_list.h","path":"Include/internal/pycore_list.h","contentType":"file"},{"name":"pycore_llist.h","path":"Include/internal/pycore_llist.h","contentType":"file"},{"name":"pycore_lock.h","path":"Include/internal/pycore_lock.h","contentType":"file"},{"name":"pycore_long.h","path":"Include/internal/pycore_long.h","contentType":"file"},{"name":"pycore_magic_number.h","path":"Include/internal/pycore_magic_number.h","contentType":"file"},{"name":"pycore_memoryobject.h","path":"Include/internal/pycore_memoryobject.h","contentType":"file"},{"name":"pycore_mimalloc.h","path":"Include/internal/pycore_mimalloc.h","contentType":"file"},{"name":"pycore_modsupport.h","path":"Include/internal/pycore_modsupport.h","contentType":"file"},{"name":"pycore_moduleobject.h","path":"Include/internal/pycore_moduleobject.h","contentType":"file"},{"name":"pycore_namespace.h","path":"Include/internal/pycore_namespace.h","contentType":"file"},{"name":"pycore_object.h","path":"Include/internal/pycore_object.h","contentType":"file"},{"name":"pycore_object_alloc.h","path":"Include/internal/pycore_object_alloc.h","contentType":"file"},{"name":"pycore_object_deferred.h","path":"Include/internal/pycore_object_deferred.h","contentType":"file"},{"name":"pycore_object_stack.h","path":"Include/internal/pycore_object_stack.h","contentType":"file"},{"name":"pycore_object_state.h","path":"Include/internal/pycore_object_state.h","contentType":"file"},{"name":"pycore_obmalloc.h","path":"Include/internal/pycore_obmalloc.h","contentType":"file"},{"name":"pycore_obmalloc_init.h","path":"Include/internal/pycore_obmalloc_init.h","contentType":"file"},{"name":"pycore_opcode_metadata.h","path":"Include/internal/pycore_opcode_metadata.h","contentType":"file"},{"name":"pycore_opcode_utils.h","path":"Include/internal/pycore_opcode_utils.h","contentType":"file"},{"name":"pycore_optimizer.h","path":"Include/internal/pycore_optimizer.h","contentType":"file"},{"name":"pycore_parking_lot.h","path":"Include/internal/pycore_parking_lot.h","contentType":"file"},{"name":"pycore_parser.h","path":"Include/internal/pycore_parser.h","contentType":"file"},{"name":"pycore_pathconfig.h","path":"Include/internal/pycore_pathconfig.h","contentType":"file"},{"name":"pycore_pyarena.h","path":"Include/internal/pycore_pyarena.h","contentType":"file"},{"name":"pycore_pyatomic_ft_wrappers.h","path":"Include/internal/pycore_pyatomic_ft_wrappers.h","contentType":"file"},{"name":"pycore_pybuffer.h","path":"Include/internal/pycore_pybuffer.h","contentType":"file"},{"name":"pycore_pyerrors.h","path":"Include/internal/pycore_pyerrors.h","contentType":"file"},{"name":"pycore_pyhash.h","path":"Include/internal/pycore_pyhash.h","contentType":"file"},{"name":"pycore_pylifecycle.h","path":"Include/internal/pycore_pylifecycle.h","contentType":"file"},{"name":"pycore_pymath.h","path":"Include/internal/pycore_pymath.h","contentType":"file"},{"name":"pycore_pymem.h","path":"Include/internal/pycore_pymem.h","contentType":"file"},{"name":"pycore_pymem_init.h","path":"Include/internal/pycore_pymem_init.h","contentType":"file"},{"name":"pycore_pystate.h","path":"Include/internal/pycore_pystate.h","contentType":"file"},{"name":"pycore_pystats.h","path":"Include/internal/pycore_pystats.h","contentType":"file"},{"name":"pycore_pythonrun.h","path":"Include/internal/pycore_pythonrun.h","contentType":"file"},{"name":"pycore_pythread.h","path":"Include/internal/pycore_pythread.h","contentType":"file"},{"name":"pycore_qsbr.h","path":"Include/internal/pycore_qsbr.h","contentType":"file"},{"name":"pycore_range.h","path":"Include/internal/pycore_range.h","contentType":"file"},{"name":"pycore_runtime.h","path":"Include/internal/pycore_runtime.h","contentType":"file"},{"name":"pycore_runtime_init.h","path":"Include/internal/pycore_runtime_init.h","contentType":"file"},{"name":"pycore_runtime_init_generated.h","path":"Include/internal/pycore_runtime_init_generated.h","contentType":"file"},{"name":"pycore_runtime_structs.h","path":"Include/internal/pycore_runtime_structs.h","contentType":"file"},{"name":"pycore_semaphore.h","path":"Include/internal/pycore_semaphore.h","contentType":"file"},{"name":"pycore_setobject.h","path":"Include/internal/pycore_setobject.h","contentType":"file"},{"name":"pycore_signal.h","path":"Include/internal/pycore_signal.h","contentType":"file"},{"name":"pycore_sliceobject.h","path":"Include/internal/pycore_sliceobject.h","contentType":"file"},{"name":"pycore_stackref.h","path":"Include/internal/pycore_stackref.h","contentType":"file"},{"name":"pycore_stats.h","path":"Include/internal/pycore_stats.h","contentType":"file"},{"name":"pycore_strhex.h","path":"Include/internal/pycore_strhex.h","contentType":"file"},{"name":"pycore_structs.h","path":"Include/internal/pycore_structs.h","contentType":"file"},{"name":"pycore_structseq.h","path":"Include/internal/pycore_structseq.h","contentType":"file"},{"name":"pycore_symtable.h","path":"Include/internal/pycore_symtable.h","contentType":"file"},{"name":"pycore_sysmodule.h","path":"Include/internal/pycore_sysmodule.h","contentType":"file"},{"name":"pycore_template.h","path":"Include/internal/pycore_template.h","contentType":"file"},{"name":"pycore_time.h","path":"Include/internal/pycore_time.h","contentType":"file"},{"name":"pycore_token.h","path":"Include/internal/pycore_token.h","contentType":"file"},{"name":"pycore_traceback.h","path":"Include/internal/pycore_traceback.h","contentType":"file"},{"name":"pycore_tracemalloc.h","path":"Include/internal/pycore_tracemalloc.h","contentType":"file"},{"name":"pycore_tstate.h","path":"Include/internal/pycore_tstate.h","contentType":"file"},{"name":"pycore_tuple.h","path":"Include/internal/pycore_tuple.h","contentType":"file"},{"name":"pycore_typedefs.h","path":"Include/internal/pycore_typedefs.h","contentType":"file"},{"name":"pycore_typeobject.h","path":"Include/internal/pycore_typeobject.h","contentType":"file"},{"name":"pycore_typevarobject.h","path":"Include/internal/pycore_typevarobject.h","contentType":"file"},{"name":"pycore_ucnhash.h","path":"Include/internal/pycore_ucnhash.h","contentType":"file"},{"name":"pycore_unicodeobject.h","path":"Include/internal/pycore_unicodeobject.h","contentType":"file"},{"name":"pycore_unicodeobject_generated.h","path":"Include/internal/pycore_unicodeobject_generated.h","contentType":"file"},{"name":"pycore_unionobject.h","path":"Include/internal/pycore_unionobject.h","contentType":"file"},{"name":"pycore_uniqueid.h","path":"Include/internal/pycore_uniqueid.h","contentType":"file"},{"name":"pycore_uop_ids.h","path":"Include/internal/pycore_uop_ids.h","contentType":"file"},{"name":"pycore_uop_metadata.h","path":"Include/internal/pycore_uop_metadata.h","contentType":"file"},{"name":"pycore_warnings.h","path":"Include/internal/pycore_warnings.h","contentType":"file"},{"name":"pycore_weakref.h","path":"Include/internal/pycore_weakref.h","contentType":"file"}],"totalCount":140},"Include":{"items":[{"name":"cpython","path":"Include/cpython","contentType":"directory"},{"name":"internal","path":"Include/internal","contentType":"directory"},{"name":"Python.h","path":"Include/Python.h","contentType":"file"},{"name":"README.rst","path":"Include/README.rst","contentType":"file"},{"name":"abstract.h","path":"Include/abstract.h","contentType":"file"},{"name":"audit.h","path":"Include/audit.h","contentType":"file"},{"name":"bltinmodule.h","path":"Include/bltinmodule.h","contentType":"file"},{"name":"boolobject.h","path":"Include/boolobject.h","contentType":"file"},{"name":"bytearrayobject.h","path":"Include/bytearrayobject.h","contentType":"file"},{"name":"bytesobject.h","path":"Include/bytesobject.h","contentType":"file"},{"name":"ceval.h","path":"Include/ceval.h","contentType":"file"},{"name":"codecs.h","path":"Include/codecs.h","contentType":"file"},{"name":"compile.h","path":"Include/compile.h","contentType":"file"},{"name":"complexobject.h","path":"Include/complexobject.h","contentType":"file"},{"name":"critical_section.h","path":"Include/critical_section.h","contentType":"file"},{"name":"datetime.h","path":"Include/datetime.h","contentType":"file"},{"name":"descrobject.h","path":"Include/descrobject.h","contentType":"file"},{"name":"dictobject.h","path":"Include/dictobject.h","contentType":"file"},{"name":"dynamic_annotations.h","path":"Include/dynamic_annotations.h","contentType":"file"},{"name":"enumobject.h","path":"Include/enumobject.h","contentType":"file"},{"name":"errcode.h","path":"Include/errcode.h","contentType":"file"},{"name":"exports.h","path":"Include/exports.h","contentType":"file"},{"name":"fileobject.h","path":"Include/fileobject.h","contentType":"file"},{"name":"fileutils.h","path":"Include/fileutils.h","contentType":"file"},{"name":"floatobject.h","path":"Include/floatobject.h","contentType":"file"},{"name":"frameobject.h","path":"Include/frameobject.h","contentType":"file"},{"name":"genericaliasobject.h","path":"Include/genericaliasobject.h","contentType":"file"},{"name":"import.h","path":"Include/import.h","contentType":"file"},{"name":"intrcheck.h","path":"Include/intrcheck.h","contentType":"file"},{"name":"iterobject.h","path":"Include/iterobject.h","contentType":"file"},{"name":"listobject.h","path":"Include/listobject.h","contentType":"file"},{"name":"lock.h","path":"Include/lock.h","contentType":"file"},{"name":"longobject.h","path":"Include/longobject.h","contentType":"file"},{"name":"marshal.h","path":"Include/marshal.h","contentType":"file"},{"name":"memoryobject.h","path":"Include/memoryobject.h","contentType":"file"},{"name":"methodobject.h","path":"Include/methodobject.h","contentType":"file"},{"name":"modsupport.h","path":"Include/modsupport.h","contentType":"file"},{"name":"moduleobject.h","path":"Include/moduleobject.h","contentType":"file"},{"name":"monitoring.h","path":"Include/monitoring.h","contentType":"file"},{"name":"object.h","path":"Include/object.h","contentType":"file"},{"name":"objimpl.h","path":"Include/objimpl.h","contentType":"file"},{"name":"opcode.h","path":"Include/opcode.h","contentType":"file"},{"name":"opcode_ids.h","path":"Include/opcode_ids.h","contentType":"file"},{"name":"osdefs.h","path":"Include/osdefs.h","contentType":"file"},{"name":"osmodule.h","path":"Include/osmodule.h","contentType":"file"},{"name":"patchlevel.h","path":"Include/patchlevel.h","contentType":"file"},{"name":"py_curses.h","path":"Include/py_curses.h","contentType":"file"},{"name":"pyatomic.h","path":"Include/pyatomic.h","contentType":"file"},{"name":"pybuffer.h","path":"Include/pybuffer.h","contentType":"file"},{"name":"pycapsule.h","path":"Include/pycapsule.h","contentType":"file"},{"name":"pydtrace.d","path":"Include/pydtrace.d","contentType":"file"},{"name":"pydtrace.h","path":"Include/pydtrace.h","contentType":"file"},{"name":"pyerrors.h","path":"Include/pyerrors.h","contentType":"file"},{"name":"pyexpat.h","path":"Include/pyexpat.h","contentType":"file"},{"name":"pyframe.h","path":"Include/pyframe.h","contentType":"file"},{"name":"pyhash.h","path":"Include/pyhash.h","contentType":"file"},{"name":"pylifecycle.h","path":"Include/pylifecycle.h","contentType":"file"},{"name":"pymacconfig.h","path":"Include/pymacconfig.h","contentType":"file"},{"name":"pymacro.h","path":"Include/pymacro.h","contentType":"file"},{"name":"pymath.h","path":"Include/pymath.h","contentType":"file"},{"name":"pymem.h","path":"Include/pymem.h","contentType":"file"},{"name":"pyport.h","path":"Include/pyport.h","contentType":"file"},{"name":"pystate.h","path":"Include/pystate.h","contentType":"file"},{"name":"pystats.h","path":"Include/pystats.h","contentType":"file"},{"name":"pystrcmp.h","path":"Include/pystrcmp.h","contentType":"file"},{"name":"pystrtod.h","path":"Include/pystrtod.h","contentType":"file"},{"name":"pythonrun.h","path":"Include/pythonrun.h","contentType":"file"},{"name":"pythread.h","path":"Include/pythread.h","contentType":"file"},{"name":"pytypedefs.h","path":"Include/pytypedefs.h","contentType":"file"},{"name":"rangeobject.h","path":"Include/rangeobject.h","contentType":"file"},{"name":"refcount.h","path":"Include/refcount.h","contentType":"file"},{"name":"setobject.h","path":"Include/setobject.h","contentType":"file"},{"name":"sliceobject.h","path":"Include/sliceobject.h","contentType":"file"},{"name":"structmember.h","path":"Include/structmember.h","contentType":"file"},{"name":"structseq.h","path":"Include/structseq.h","contentType":"file"},{"name":"sysmodule.h","path":"Include/sysmodule.h","contentType":"file"},{"name":"traceback.h","path":"Include/traceback.h","contentType":"file"},{"name":"tupleobject.h","path":"Include/tupleobject.h","contentType":"file"},{"name":"typeslots.h","path":"Include/typeslots.h","contentType":"file"},{"name":"unicodeobject.h","path":"Include/unicodeobject.h","contentType":"file"},{"name":"warnings.h","path":"Include/warnings.h","contentType":"file"},{"name":"weakrefobject.h","path":"Include/weakrefobject.h","contentType":"file"}],"totalCount":82},"":{"items":[{"name":".azure-pipelines","path":".azure-pipelines","contentType":"directory"},{"name":".devcontainer","path":".devcontainer","contentType":"directory"},{"name":".github","path":".github","contentType":"directory"},{"name":"Android","path":"Android","contentType":"directory"},{"name":"Doc","path":"Doc","contentType":"directory"},{"name":"Grammar","path":"Grammar","contentType":"directory"},{"name":"Include","path":"Include","contentType":"directory"},{"name":"InternalDocs","path":"InternalDocs","contentType":"directory"},{"name":"Lib","path":"Lib","contentType":"directory"},{"name":"Mac","path":"Mac","contentType":"directory"},{"name":"Misc","path":"Misc","contentType":"directory"},{"name":"Modules","path":"Modules","contentType":"directory"},{"name":"Objects","path":"Objects","contentType":"directory"},{"name":"PC","path":"PC","contentType":"directory"},{"name":"PCbuild","path":"PCbuild","contentType":"directory"},{"name":"Parser","path":"Parser","contentType":"directory"},{"name":"Programs","path":"Programs","contentType":"directory"},{"name":"Python","path":"Python","contentType":"directory"},{"name":"Tools","path":"Tools","contentType":"directory"},{"name":"iOS","path":"iOS","contentType":"directory"},{"name":".coveragerc","path":".coveragerc","contentType":"file"},{"name":".editorconfig","path":".editorconfig","contentType":"file"},{"name":".gitattributes","path":".gitattributes","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".mailmap","path":".mailmap","contentType":"file"},{"name":".pre-commit-config.yaml","path":".pre-commit-config.yaml","contentType":"file"},{"name":".readthedocs.yml","path":".readthedocs.yml","contentType":"file"},{"name":".ruff.toml","path":".ruff.toml","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"Makefile.pre.in","path":"Makefile.pre.in","contentType":"file"},{"name":"README.rst","path":"README.rst","contentType":"file"},{"name":"aclocal.m4","path":"aclocal.m4","contentType":"file"},{"name":"config.guess","path":"config.guess","contentType":"file"},{"name":"config.sub","path":"config.sub","contentType":"file"},{"name":"configure","path":"configure","contentType":"file"},{"name":"configure.ac","path":"configure.ac","contentType":"file"},{"name":"install-sh","path":"install-sh","contentType":"file"},{"name":"pyconfig.h.in","path":"pyconfig.h.in","contentType":"file"}],"totalCount":38}},"fileTreeProcessingTime":44.335696,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":81598961,"defaultBranch":"main","name":"cpython","ownerLogin":"python","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2017-02-10T19:23:51.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/1525981?v=4","public":true,"private":false,"isOrgOwned":true},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"main","listCacheKey":"v0:1750185131.0","canEdit":false,"refType":"branch","currentOid":"0240ef4705d835e27beb2437dfadb5d34aa2db17"},"path":"Include/internal/pycore_tracemalloc.h","currentUser":null,"blob":{"rawLines":["#ifndef Py_INTERNAL_TRACEMALLOC_H","#define Py_INTERNAL_TRACEMALLOC_H","#ifdef __cplusplus","extern \"C\" {","#endif","","#ifndef Py_BUILD_CORE","# error \"this header requires Py_BUILD_CORE define\"","#endif","","#include \"pycore_hashtable.h\" // _Py_hashtable_t","","","struct _PyTraceMalloc_Config {"," /* Module initialized?"," Variable protected by the GIL */"," enum {"," TRACEMALLOC_NOT_INITIALIZED,"," TRACEMALLOC_INITIALIZED,"," TRACEMALLOC_FINALIZED"," } initialized;",""," /* Is tracemalloc tracing memory allocations?"," Variable protected by the TABLES_LOCK(). */"," int tracing;",""," /* limit of the number of frames in a traceback, 1 by default."," Variable protected by the GIL. */"," int max_nframe;","};","","","/* Pack the frame_t structure to reduce the memory footprint on 64-bit"," architectures: 12 bytes instead of 16. */","#if defined(_MSC_VER)","#pragma pack(push, 4)","#endif","","struct","#ifdef __GNUC__","__attribute__((packed))","#endif","tracemalloc_frame {"," /* filename cannot be NULL: \"\u003cunknown\u003e\" is used if the Python frame"," filename is NULL */"," PyObject *filename;"," unsigned int lineno;","};","#ifdef _MSC_VER","#pragma pack(pop)","#endif","","struct tracemalloc_traceback {"," Py_uhash_t hash;"," /* Number of frames stored */"," uint16_t nframe;"," /* Total number of frames the traceback had */"," uint16_t total_nframe;"," struct tracemalloc_frame frames[1];","};","","","struct _tracemalloc_runtime_state {"," struct _PyTraceMalloc_Config config;",""," /* Protected by the GIL */"," struct {"," PyMemAllocatorEx mem;"," PyMemAllocatorEx raw;"," PyMemAllocatorEx obj;"," } allocators;",""," PyMutex tables_lock;"," /* Size in bytes of currently traced memory."," Protected by TABLES_LOCK(). */"," size_t traced_memory;"," /* Peak size in bytes of traced memory."," Protected by TABLES_LOCK(). */"," size_t peak_traced_memory;"," /* Hash table used as a set to intern filenames:"," PyObject* =\u003e PyObject*."," Protected by the TABLES_LOCK(). */"," _Py_hashtable_t *filenames;"," /* Buffer to store a new traceback in traceback_new()."," Protected by the TABLES_LOCK(). */"," struct tracemalloc_traceback *traceback;"," /* Hash table used as a set to intern tracebacks:"," traceback_t* =\u003e traceback_t*"," Protected by the TABLES_LOCK(). */"," _Py_hashtable_t *tracebacks;"," /* pointer (void*) =\u003e trace (trace_t*)."," Protected by TABLES_LOCK(). */"," _Py_hashtable_t *traces;"," /* domain (unsigned int) =\u003e traces (_Py_hashtable_t)."," Protected by TABLES_LOCK(). */"," _Py_hashtable_t *domains;",""," struct tracemalloc_traceback empty_traceback;",""," Py_tss_t reentrant_key;","};","","#define _tracemalloc_runtime_state_INIT \\"," { \\"," .config = { \\"," .initialized = TRACEMALLOC_NOT_INITIALIZED, \\"," .tracing = 0, \\"," .max_nframe = 1, \\"," }, \\"," .reentrant_key = Py_tss_NEEDS_INIT, \\"," }","","","// Get the traceback where a memory block was allocated.","//","// Return a tuple of (filename: str, lineno: int) tuples.","//","// Return None if the tracemalloc module is disabled or if the memory block","// is not tracked by tracemalloc.","//","// Raise an exception and return NULL on error.","//","// Export for '_testinternalcapi' shared extension.","PyAPI_FUNC(PyObject*) _PyTraceMalloc_GetTraceback("," unsigned int domain,"," uintptr_t ptr);","","/* Return non-zero if tracemalloc is tracing */","extern int _PyTraceMalloc_IsTracing(void);","","/* Clear the tracemalloc traces */","extern void _PyTraceMalloc_ClearTraces(void);","","/* Clear the tracemalloc traces */","extern PyObject* _PyTraceMalloc_GetTraces(void);","","/* Clear tracemalloc traceback for an object */","extern PyObject* _PyTraceMalloc_GetObjectTraceback(PyObject *obj);","","/* Initialize tracemalloc */","extern PyStatus _PyTraceMalloc_Init(void);","","/* Start tracemalloc */","extern int _PyTraceMalloc_Start(int max_nframe);","","/* Stop tracemalloc */","extern void _PyTraceMalloc_Stop(void);","","/* Get the tracemalloc traceback limit */","extern int _PyTraceMalloc_GetTracebackLimit(void);","","/* Get the memory usage of tracemalloc in bytes */","extern size_t _PyTraceMalloc_GetMemory(void);","","/* Get the current size and peak size of traced memory blocks as a 2-tuple */","extern PyObject* _PyTraceMalloc_GetTracedMemory(void);","","/* Set the peak size of traced memory blocks to the current size */","extern void _PyTraceMalloc_ResetPeak(void);","","#ifdef __cplusplus","}","#endif","#endif // !Py_INTERNAL_TRACEMALLOC_H"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/python/cpython/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"pycore_tracemalloc.h","displayUrl":"https://github.com/python/cpython/blob/main/Include/internal/pycore_tracemalloc.h?raw=true","headerInfo":{"blobSize":"4.34 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"572e802","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fblob%2Fmain%2FInclude%2Finternal%2Fpycore_tracemalloc.h","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"164","truncatedSloc":"133"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"C","languageID":41,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/python/cpython/blob/main/Include/internal/pycore_tracemalloc.h","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/python/cpython/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/python/cpython/raw/refs/heads/main/Include/internal/pycore_tracemalloc.h","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":"/python/.github/blob/5a0a7cb55767fb3667fe2391bcb66bda638edcb4/FUNDING.yml","showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":null},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/python/cpython/branches":{"post":"bpfaYDCuizBlGQ79rAY9Bo7Xw0LItyOSGvoBLwEIvLHtReaBFTjXs6V4_FDRrNgUonNeKEPc3O8wXel43gNsDg"},"/repos/preferences":{"post":"yY12eysV_ON5aklDx6oNZXQv07p3c53Fmu2npCGq1ipyhgZRGezcAdDwYvBrKhQ3dntgBlaECdiDOO10tlDpQg"}}},"title":"cpython/Include/internal/pycore_tracemalloc.h at main · python/cpython","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-b84e9496fc59.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0