1 // Statistics on Python performance (public API). 2 // 3 // Define _Py_INCREF_STAT_INC() and _Py_DECREF_STAT_INC() used by Py_INCREF() 4 // and Py_DECREF(). 5 // 6 // See Include/cpython/pystats.h for the full API. 7 8 #ifndef Py_PYSTATS_H 9 #define Py_PYSTATS_H 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 #if defined(Py_STATS) && !defined(Py_LIMITED_API) 15 # define Py_CPYTHON_PYSTATS_H 16 # include "cpython/pystats.h" 17 # undef Py_CPYTHON_PYSTATS_H 18 #else 19 # define _Py_INCREF_STAT_INC() ((void)0) 20 # define _Py_DECREF_STAT_INC() ((void)0) 21 #endif // !Py_STATS 22 23 #ifdef __cplusplus 24 } 25 #endif 26 #endif // !Py_PYSTATS_H 27