mirror of
https://github.com/python/cpython
synced 2024-09-16 01:13:03 +00:00
Remove pair-counts from specialization stats. (GH-31500)
This commit is contained in:
parent
9058a35558
commit
1320d56ff7
|
@ -42,10 +42,13 @@ def print_specialization_stats(name, family_stats, defines):
|
|||
label = key[len("specialization."):]
|
||||
elif key == "execution_count":
|
||||
label = "unquickened"
|
||||
elif key in ("specialization.success", "specialization.failure", "specializable"):
|
||||
continue
|
||||
elif key.startswith("pair"):
|
||||
continue
|
||||
else:
|
||||
label = key
|
||||
if key not in ("specialization.success", "specialization.failure", "specializable"):
|
||||
rows.append((f"{label:>12}", f"{family_stats[key]:>12}", f"{100*family_stats[key]/total:0.1f}%"))
|
||||
rows.append((f"{label:>12}", f"{family_stats[key]:>12}", f"{100*family_stats[key]/total:0.1f}%"))
|
||||
emit_table(("Kind", "Count", "Ratio"), rows)
|
||||
print_title("Specialization attempts", 4)
|
||||
total_attempts = 0
|
||||
|
|
Loading…
Reference in a new issue