diff options
author | Michael Droettboom <mdboom@gmail.com> | 2023-10-04 21:52:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 21:52:28 (GMT) |
commit | e561e9805854980a61967d07869b4ec4205b32c8 (patch) | |
tree | 4cf341fc0bf0091ad1b3e7eb034699b23a4ae851 /Python/bytecodes.c | |
parent | f7860295b16a402621e209871c8eaeeea16f464e (diff) | |
download | cpython-e561e9805854980a61967d07869b4ec4205b32c8.zip cpython-e561e9805854980a61967d07869b4ec4205b32c8.tar.gz cpython-e561e9805854980a61967d07869b4ec4205b32c8.tar.bz2 |
GH-109329: Add tier 2 stats (GH-109913)
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r-- | Python/bytecodes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 6482252..9b733ce 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -2278,7 +2278,7 @@ dummy_func( // Double-check that the opcode isn't instrumented or something: here->op.code == JUMP_BACKWARD) { - OBJECT_STAT_INC(optimization_attempts); + OPT_STAT_INC(attempts); int optimized = _PyOptimizer_BackEdge(frame, here, next_instr, stack_pointer); ERROR_IF(optimized < 0, error); if (optimized) { @@ -3965,6 +3965,7 @@ dummy_func( frame->prev_instr--; // Back up to just before destination _PyFrame_SetStackPointer(frame, stack_pointer); Py_DECREF(self); + OPT_HIST(trace_uop_execution_counter, trace_run_length_hist); return frame; } |