Include/internal/pycore_pystats.h
raw| 1 | #ifndef Py_INTERNAL_PYSTATS_H |
| 2 | #define Py_INTERNAL_PYSTATS_H |
| 3 | #ifdef __cplusplus |
| 4 | extern "C" { |
| 5 | #endif |
| 6 | |
| 7 | #ifndef Py_BUILD_CORE |
| 8 | # error "this header requires Py_BUILD_CORE define" |
| 9 | #endif |
| 10 | |
| 11 | #ifdef Py_STATS |
| 12 | extern void _Py_StatsOn(void); |
| 13 | extern void _Py_StatsOff(void); |
| 14 | extern void _Py_StatsClear(void); |
| 15 | extern int _Py_PrintSpecializationStats(int to_file); |
| 16 | #endif |
| 17 | |
| 18 | #ifdef __cplusplus |
| 19 | } |
| 20 | #endif |
| 21 | #endif // !Py_INTERNAL_PYSTATS_H |