diff options
author | Mark Shannon <mark@hotpy.org> | 2021-07-29 19:50:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-29 19:50:03 (GMT) |
commit | 2116909b3e1f044c268cebea78c92c7f593f99fe (patch) | |
tree | b39210fd0ae1c5ee62cbe7fe6f7d7b9132fc6f28 /Include/internal | |
parent | 7e311e496b0e26b3d3c62fe9b0ed2a4677c37ee9 (diff) | |
download | cpython-2116909b3e1f044c268cebea78c92c7f593f99fe.zip cpython-2116909b3e1f044c268cebea78c92c7f593f99fe.tar.gz cpython-2116909b3e1f044c268cebea78c92c7f593f99fe.tar.bz2 |
Minor fixes to specialization stats. (GH-27457)
* Use class, not value for fail stats for BINARY_SUBSCR.
* Fix counts for unquickened instructions.
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_code.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h index 2cd7c70..2a50a07 100644 --- a/Include/internal/pycore_code.h +++ b/Include/internal/pycore_code.h @@ -320,12 +320,14 @@ typedef struct _stats { extern SpecializationStats _specialization_stats[256]; #define STAT_INC(opname, name) _specialization_stats[opname].name++ +#define STAT_DEC(opname, name) _specialization_stats[opname].name-- void _Py_PrintSpecializationStats(void); PyAPI_FUNC(PyObject*) _Py_GetSpecializationStats(void); #else #define STAT_INC(opname, name) ((void)0) +#define STAT_DEC(opname, name) ((void)0) #endif |