gh-112320: Implement on-trace confidence tracking for branches (#112321)

We track the confidence as a scaled int.
This commit is contained in:
Guido van Rossum
2023-12-12 13:43:08 -08:00
committed by GitHub
parent dfaa9e060b
commit 7316dfb0eb
6 changed files with 56 additions and 3 deletions

View File

@@ -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),
}