diff options
author | Guido van Rossum <guido@python.org> | 2023-12-12 21:43:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 21:43:08 (GMT) |
commit | 7316dfb0ebc46aedf484c1f15f03a0a309d12a42 (patch) | |
tree | 92f0fb1befd424b1235b61e9d0d0e1d0389c190b /Python/specialize.c | |
parent | dfaa9e060bf6d69cb862a2ac140b8fccbebf3000 (diff) | |
download | cpython-7316dfb0ebc46aedf484c1f15f03a0a309d12a42.zip cpython-7316dfb0ebc46aedf484c1f15f03a0a309d12a42.tar.gz cpython-7316dfb0ebc46aedf484c1f15f03a0a309d12a42.tar.bz2 |
gh-112320: Implement on-trace confidence tracking for branches (#112321)
We track the confidence as a scaled int.
Diffstat (limited to 'Python/specialize.c')
-rw-r--r-- | Python/specialize.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/specialize.c b/Python/specialize.c index ba704cb..7c2a4a4 100644 --- a/Python/specialize.c +++ b/Python/specialize.c @@ -233,6 +233,7 @@ print_optimization_stats(FILE *out, OptimizationStats *stats) fprintf(out, "Optimization trace too short: %" PRIu64 "\n", stats->trace_too_short); fprintf(out, "Optimization inner loop: %" PRIu64 "\n", stats->inner_loop); fprintf(out, "Optimization recursive call: %" PRIu64 "\n", stats->recursive_call); + fprintf(out, "Optimization low confidence: %" PRIu64 "\n", stats->low_confidence); print_histogram(out, "Trace length", stats->trace_length_hist); print_histogram(out, "Trace run length", stats->trace_run_length_hist); |