8000 Don't double count misses. (GH-100984) · python/cpython@c00eb1e · GitHub
[go: up one dir, main page]

Skip to content

Commit c00eb1e

Browse files
authored
Don't double count misses. (GH-100984)
1 parent e5bd5ad commit c00eb1e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Tools/scripts/summarize_stats.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ def emit_specialization_overview(opcode_stats, total):
404404
total = 0
405405
counts = []
406406
for i, opcode_stat in enumerate(opcode_stats):
407+
# Avoid double counting misses
408+
if title == "Misses" and "specializable" in opcode_stat:
409+
continue
407410
value = opcode_stat.get(field, 0)
408411
counts.append((value, opname[i]))
409412
total += value

0 commit comments

Comments
 (0)
0