Skip to content

Commit 0f27801

Browse files
authored
gh-116808: Fix optimized trace length histogram (GH-116827)
1 parent 5405e9e commit 0f27801

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/optimizer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,8 @@ make_executor_from_uops(_PyUOpInstruction *buffer, const _PyBloomFilter *depende
913913
if (executor == NULL) {
914914
return NULL;
915915
}
916+
OPT_HIST(length, optimized_trace_length_hist);
917+
916918
/* Initialize exits */
917919
for (int i = 0; i < exit_count; i++) {
918920
executor->exits[i].executor = &COLD_EXITS[i];
@@ -1051,7 +1053,6 @@ uop_optimize(
10511053
if (executor == NULL) {
10521054
return -1;
10531055
}
1054-
OPT_HIST(Py_SIZE(executor), optimized_trace_length_hist);
10551056
*exec_ptr = executor;
10561057
return 1;
10571058
}

0 commit comments

Comments
 (0)