codekingpro/portable-devtools
115k
1#ifndef Py_CPYTHON_CEVAL_H2# error "this header file must not be included directly"3#endif4 5PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *);6PyAPI_FUNC(void) PyEval_SetProfileAllThreads(Py_tracefunc, PyObject *);7PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *);8PyAPI_FUNC(void) PyEval_SetTraceAllThreads(Py_tracefunc, PyObject *);9 10/* Look at the current frame's (if any) code's co_flags, and turn on11 the corresponding compiler flags in cf->cf_flags. Return 1 if any12 flag was set, else return 0. */13PyAPI_FUNC(int) PyEval_MergeCompilerFlags(PyCompilerFlags *cf);14 15PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(PyThreadState *tstate, struct _PyInterpreterFrame *f, int exc);16 17PyAPI_FUNC(Py_ssize_t) PyUnstable_Eval_RequestCodeExtraIndex(freefunc);18// Old name -- remove when this API changes:19_Py_DEPRECATED_EXTERNALLY(3.12) static inline Py_ssize_t20_PyEval_RequestCodeExtraIndex(freefunc f) {21 return PyUnstable_Eval_RequestCodeExtraIndex(f);22}23 24PyAPI_FUNC(int) _PyEval_SliceIndex(PyObject *, Py_ssize_t *);25PyAPI_FUNC(int) _PyEval_SliceIndexNotNone(PyObject *, Py_ssize_t *);26 27 28// Trampoline API29 30typedef struct {31 FILE* perf_map;32 PyThread_type_lock map_lock;33} PerfMapState;34 35PyAPI_FUNC(int) PyUnstable_PerfMapState_Init(void);36PyAPI_FUNC(int) PyUnstable_WritePerfMapEntry(37 const void *code_addr,38 unsigned int code_size,39 const char *entry_name);40PyAPI_FUNC(void) PyUnstable_PerfMapState_Fini(void);41PyAPI_FUNC(int) PyUnstable_CopyPerfMapFile(const char* parent_filename);42PyAPI_FUNC(int) PyUnstable_PerfTrampoline_CompileCode(PyCodeObject *);43PyAPI_FUNC(int) PyUnstable_PerfTrampoline_SetPersistAfterFork(int enable);44 