Add miss stats for specialized instructions. (GH-31108)

This commit is contained in:
Mark Shannon 2022-02-04 09:56:46 +00:00 committed by GitHub
parent ba650af7d6
commit 832876b992
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 43 additions and 31 deletions

View file

@ -5403,6 +5403,7 @@ handle_eval_breaker:
#define MISS_WITH_CACHE(opname) \
opname ## _miss: \
{ \
STAT_INC(opcode, miss); \
STAT_INC(opname, miss); \
_PyAdaptiveEntry *cache = &GET_CACHE()->adaptive; \
cache->counter--; \