mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-112320: Implement on-trace confidence tracking for branches (#112321)
We track the confidence as a scaled int.
This commit is contained in:
parent
dfaa9e060b
commit
7316dfb0eb
6 changed files with 56 additions and 3 deletions
|
@ -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),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue