diff options
author | Mark Shannon <mark@hotpy.org> | 2023-01-13 15:57:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-13 15:57:39 (GMT) |
commit | c00eb1eae6af3ee5b7e314add4606da4521bb8c5 (patch) | |
tree | 7023a81836253067b576e1b31fa89c668ed5e23c /Tools | |
parent | e5bd5ad70d9e549eeb80aadb4f3ccb0f2f23266d (diff) | |
download | cpython-c00eb1eae6af3ee5b7e314add4606da4521bb8c5.zip cpython-c00eb1eae6af3ee5b7e314add4606da4521bb8c5.tar.gz cpython-c00eb1eae6af3ee5b7e314add4606da4521bb8c5.tar.bz2 |
Don't double count misses. (GH-100984)
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/scripts/summarize_stats.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/scripts/summarize_stats.py b/Tools/scripts/summarize_stats.py index 1c8d10f..ce25374 100644 --- a/Tools/scripts/summarize_stats.py +++ b/Tools/scripts/summarize_stats.py @@ -404,6 +404,9 @@ def emit_specialization_overview(opcode_stats, total): total = 0 counts = [] for i, opcode_stat in enumerate(opcode_stats): + # Avoid double counting misses + if title == "Misses" and "specializable" in opcode_stat: + continue value = opcode_stat.get(field, 0) counts.append((value, opname[i])) total += value |