diff options
author | Mark Shannon <mark@hotpy.org> | 2022-02-22 15:44:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-22 15:44:31 (GMT) |
commit | 1320d56ff73af290775d6ca5749ecd3ac5b67158 (patch) | |
tree | 8465ff60a5afd5754a104fc7751c950869daee9a /Tools | |
parent | 9058a35558422810061989f41571fdfea7ea8cbe (diff) | |
download | cpython-1320d56ff73af290775d6ca5749ecd3ac5b67158.zip cpython-1320d56ff73af290775d6ca5749ecd3ac5b67158.tar.gz cpython-1320d56ff73af290775d6ca5749ecd3ac5b67158.tar.bz2 |
Remove pair-counts from specialization stats. (GH-31500)
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/scripts/summarize_stats.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Tools/scripts/summarize_stats.py b/Tools/scripts/summarize_stats.py index 5805ba4..df20959 100644 --- a/Tools/scripts/summarize_stats.py +++ b/Tools/scripts/summarize_stats.py @@ -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 |