Skip to content

Commit 25937e3

Browse files
authored
gh-111663: Restore the Tier 2 uop count pystats (#111664)
1 parent f4b5588 commit 25937e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/ceval.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
10051005
(int)(stack_pointer - _PyFrame_Stackbase(frame)));
10061006
next_uop++;
10071007
OPT_STAT_INC(uops_executed);
1008+
UOP_STAT_INC(opcode, execution_count);
10081009
#ifdef Py_STATS
10091010
trace_uop_execution_counter++;
10101011
#endif
@@ -1058,6 +1059,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int
10581059
// This presumes nothing was popped from the stack (nor pushed).
10591060
DPRINTF(2, "DEOPT: [Opcode %d, operand %" PRIu64 "]\n", opcode, operand);
10601061
OPT_HIST(trace_uop_execution_counter, trace_run_length_hist);
1062+
UOP_STAT_INC(opcode, miss);
10611063
frame->return_offset = 0; // Dispatch to frame->instr_ptr
10621064
_PyFrame_SetStackPointer(frame, stack_pointer);
10631065
Py_DECREF(current_executor);

0 commit comments

Comments
 (0)