Skip to content

Commit 93fc149

Browse files
authored
Summarize stats: Increase number of predecessor/successor pairs shown from 3 to 5. (GH-92853)
1 parent 702e0da commit 93fc149

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tools/scripts/summarize_stats.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def emit_pair_counts(opcode_stats, total):
315315
emit_table(("Pair", "Count:", "Self:", "Cumulative:"),
316316
rows
317317
)
318-
with Section("Predecessor/Successor Pairs", summary="Top 3 predecessors and successors of each opcode"):
318+
with Section("Predecessor/Successor Pairs", summary="Top 5 predecessors and successors of each opcode"):
319319
predecessors = collections.defaultdict(collections.Counter)
320320
successors = collections.defaultdict(collections.Counter)
321321
total_predecessors = collections.Counter()
@@ -334,10 +334,10 @@ def emit_pair_counts(opcode_stats, total):
334334
pred_rows = succ_rows = ()
335335
if total1:
336336
pred_rows = [(opname[pred], count, f"{count/total1:.1%}")
337-
for (pred, count) in predecessors[i].most_common(3)]
337+
for (pred, count) in predecessors[i].most_common(5)]
338338
if total2:
339339
succ_rows = [(opname[succ], count, f"{count/total2:.1%}")
340-
for (succ, count) in successors[i].most_common(3)]
340+
for (succ, count) in successors[i].most_common(5)]
341341
with Section(name, 3, f"Successors and predecessors for {name}"):
342342
emit_table(("Predecessors", "Count:", "Percentage:"),
343343
pred_rows

0 commit comments

Comments
 (0)