summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2022-02-04 09:56:46 (GMT)
committerGitHub <noreply@github.com>2022-02-04 09:56:46 (GMT)
commit832876b99212999c063cbf41bdacc574da699190 (patch)
tree5adb758bb9e6ca2e9913a0b292c55fdebb04e406 /Python/ceval.c
parentba650af7d660084e08859dd1ee1917cccee24e88 (diff)
downloadcpython-832876b99212999c063cbf41bdacc574da699190.zip
cpython-832876b99212999c063cbf41bdacc574da699190.tar.gz
cpython-832876b99212999c063cbf41bdacc574da699190.tar.bz2
Add miss stats for specialized instructions. (GH-31108)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index b4029d1..e6b5d3a 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -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--; \