File indexing completed on 2025-09-16 09:04:07
0001 #ifndef Py_TRACEMALLOC_H
0002 #define Py_TRACEMALLOC_H
0003 #ifndef Py_LIMITED_API
0004 #ifdef __cplusplus
0005 extern "C" {
0006 #endif
0007
0008
0009
0010
0011
0012
0013
0014
0015 PyAPI_FUNC(int) PyTraceMalloc_Track(
0016 unsigned int domain,
0017 uintptr_t ptr,
0018 size_t size);
0019
0020
0021
0022
0023
0024 PyAPI_FUNC(int) PyTraceMalloc_Untrack(
0025 unsigned int domain,
0026 uintptr_t ptr);
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036 PyAPI_FUNC(PyObject*) _PyTraceMalloc_GetTraceback(
0037 unsigned int domain,
0038 uintptr_t ptr);
0039
0040
0041 PyAPI_FUNC(int) _PyTraceMalloc_IsTracing(void);
0042
0043
0044 PyAPI_FUNC(void) _PyTraceMalloc_ClearTraces(void);
0045
0046
0047 PyAPI_FUNC(PyObject *) _PyTraceMalloc_GetTraces(void);
0048
0049
0050 PyAPI_FUNC(PyObject *) _PyTraceMalloc_GetObjectTraceback(PyObject *obj);
0051
0052
0053 PyAPI_FUNC(PyStatus) _PyTraceMalloc_Init(void);
0054
0055
0056 PyAPI_FUNC(int) _PyTraceMalloc_Start(int max_nframe);
0057
0058
0059 PyAPI_FUNC(void) _PyTraceMalloc_Stop(void);
0060
0061
0062 PyAPI_FUNC(int) _PyTraceMalloc_GetTracebackLimit(void);
0063
0064
0065 PyAPI_FUNC(size_t) _PyTraceMalloc_GetMemory(void);
0066
0067
0068 PyAPI_FUNC(PyObject *) _PyTraceMalloc_GetTracedMemory(void);
0069
0070
0071 PyAPI_FUNC(void) _PyTraceMalloc_ResetPeak(void);
0072
0073 #ifdef __cplusplus
0074 }
0075 #endif
0076 #endif
0077 #endif