#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"
#define TRACE_RAW_MALLOC
struct _PyTraceMalloc_Config { … };
#if defined(_MSC_VER)
#pragma pack(push, 4)
#endif
struct
#ifdef __GNUC__
__attribute__((packed))
#endif
tracemalloc_frame { … };
#ifdef _MSC_VER
#pragma pack(pop)
#endif
struct tracemalloc_traceback { … };
struct _tracemalloc_runtime_state { … };
#define _tracemalloc_runtime_state_INIT …
PyAPI_FUNC(PyObject*) _PyTraceMalloc_GetTraceback(
unsigned int domain,
uintptr_t ptr);
extern int _PyTraceMalloc_IsTracing(void);
extern void _PyTraceMalloc_ClearTraces(void);
extern PyObject* _PyTraceMalloc_GetTraces(void);
extern PyObject* _PyTraceMalloc_GetObjectTraceback(PyObject *obj);
extern int _PyTraceMalloc_Init(void);
extern int _PyTraceMalloc_Start(int max_nframe);
extern void _PyTraceMalloc_Stop(void);
extern int _PyTraceMalloc_GetTracebackLimit(void);
extern size_t _PyTraceMalloc_GetMemory(void);
extern PyObject* _PyTraceMalloc_GetTracedMemory(void);
extern void _PyTraceMalloc_ResetPeak(void);
#ifdef __cplusplus
}
#endif
#endif