@@ -315,7 +315,7 @@ def emit_pair_counts(opcode_stats, total):
315
315
emit_table (("Pair" , "Count:" , "Self:" , "Cumulative:" ),
316
316
rows
317
317
)
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" ):
319
319
predecessors = collections .defaultdict (collections .Counter )
320
320
successors = collections .defaultdict (collections .Counter )
321
321
total_predecessors = collections .Counter ()
@@ -334,10 +334,10 @@ def emit_pair_counts(opcode_stats, total):
334
334
pred_rows = succ_rows = ()
335
335
if total1 :
336
336
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 )]
338
338
if total2 :
339
339
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 )]
341
341
with Section (name , 3 , f"Successors and predecessors for { name } " ):
342
342
emit_table (("Predecessors" , "Count:" , "Percentage:" ),
343
343
pred_rows
0 commit comments