@@ -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