summaryrefslogtreecommitdiffstats
path: root/Python/ceval_macros.h
diff options
context:
space:
mode:
authorMichael Droettboom <mdboom@gmail.com>2024-03-28 22:23:08 (GMT)
committerGitHub <noreply@github.com>2024-03-28 22:23:08 (GMT)
commit26d328b2ba26374fb8d9ffe8215ecef7c5e3f7a2 (patch)
tree67be3e047975a457cacc7bb96d0329067f555b06 /Python/ceval_macros.h
parent14f1ca7d5363386163839b31ce987423daecc3de (diff)
downloadcpython-26d328b2ba26374fb8d9ffe8215ecef7c5e3f7a2.zip
cpython-26d328b2ba26374fb8d9ffe8215ecef7c5e3f7a2.tar.gz
cpython-26d328b2ba26374fb8d9ffe8215ecef7c5e3f7a2.tar.bz2
GH-117121: Add pystats to JIT builds (GH-117346)
Diffstat (limited to 'Python/ceval_macros.h')
-rw-r--r--Python/ceval_macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h
index f2536ed..1194c11 100644
--- a/Python/ceval_macros.h
+++ b/Python/ceval_macros.h
@@ -392,6 +392,7 @@ stack_pointer = _PyFrame_GetStackPointer(frame);
#ifdef _Py_JIT
#define GOTO_TIER_TWO(EXECUTOR) \
do { \
+ OPT_STAT_INC(traces_executed); \
jit_func jitted = (EXECUTOR)->jit_code; \
next_instr = jitted(frame, stack_pointer, tstate); \
Py_DECREF(tstate->previous_executor); \
@@ -406,6 +407,7 @@ do { \
#else
#define GOTO_TIER_TWO(EXECUTOR) \
do { \
+ OPT_STAT_INC(traces_executed); \
next_uop = (EXECUTOR)->trace; \
assert(next_uop->opcode == _START_EXECUTOR || next_uop->opcode == _COLD_EXIT); \
goto enter_tier_two; \