mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Minor fixes to specialization stats. (GH-27457)
* Use class, not value for fail stats for BINARY_SUBSCR. * Fix counts for unquickened instructions.
This commit is contained in:
parent
7e311e496b
commit
2116909b3e
3 changed files with 13 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue