summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2023-12-12 21:43:08 (GMT)
committerGitHub <noreply@github.com>2023-12-12 21:43:08 (GMT)
commit7316dfb0ebc46aedf484c1f15f03a0a309d12a42 (patch)
tree92f0fb1befd424b1235b61e9d0d0e1d0389c190b /Tools
parentdfaa9e060bf6d69cb862a2ac140b8fccbebf3000 (diff)
downloadcpython-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 'Tools')
-rw-r--r--Tools/scripts/summarize_stats.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tools/scripts/summarize_stats.py b/Tools/scripts/summarize_stats.py
index 360b7c7..80a1280 100644
--- a/Tools/scripts/summarize_stats.py
+++ b/Tools/scripts/summarize_stats.py
@@ -386,6 +386,7 @@ class Stats:
trace_too_short = self._data["Optimization trace too short"]
inner_loop = self._data["Optimization inner loop"]
recursive_call = self._data["Optimization recursive call"]
+ low_confidence = self._data["Optimization low confidence"]
return {
"Optimization attempts": (attempts, None),
@@ -396,6 +397,7 @@ class Stats:
"Trace too short": (trace_too_short, attempts),
"Inner loop found": (inner_loop, attempts),
"Recursive call": (recursive_call, attempts),
+ "Low confidence": (low_confidence, attempts),
"Traces executed": (executed, None),
"Uops executed": (uops, executed),
}