diff options
author | Michael Droettboom <mdboom@gmail.com> | 2024-03-19 11:06:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-19 11:06:43 (GMT) |
commit | 0f278012e88fa9607d85bc6c7265fd394f0ac163 (patch) | |
tree | eed2e74795b13e2b2a789dff38f65f652e6457e1 /Python | |
parent | 5405e9e5b51f3bd883aee5c1a52a39a56e2fb2b4 (diff) | |
download | cpython-0f278012e88fa9607d85bc6c7265fd394f0ac163.zip cpython-0f278012e88fa9607d85bc6c7265fd394f0ac163.tar.gz cpython-0f278012e88fa9607d85bc6c7265fd394f0ac163.tar.bz2 |
gh-116808: Fix optimized trace length histogram (GH-116827)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/optimizer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/optimizer.c b/Python/optimizer.c index a6d6ffe..bb00e0d 100644 --- a/Python/optimizer.c +++ b/Python/optimizer.c @@ -913,6 +913,8 @@ make_executor_from_uops(_PyUOpInstruction *buffer, const _PyBloomFilter *depende if (executor == NULL) { return NULL; } + OPT_HIST(length, optimized_trace_length_hist); + /* Initialize exits */ for (int i = 0; i < exit_count; i++) { executor->exits[i].executor = &COLD_EXITS[i]; @@ -1051,7 +1053,6 @@ uop_optimize( if (executor == NULL) { return -1; } - OPT_HIST(Py_SIZE(executor), optimized_trace_length_hist); *exec_ptr = executor; return 1; } |