def render_common_pairs(profile=None):
 if (profile is None):
  profile = snapshot_profile()
 def seq():
  for (_, ops, count) in common_pairs(profile):
   (yield ('%s: %s\n' % (count, ops)))
 return ''.join(seq())

def render_common_pairs ( profile = None ) : if ( profile is None ) : profile = snapshot_profile ( ) def seq ( ) : for ( _ , ops , count ) in common_pairs ( profile ) : ( yield ( '%s: %s\n' % ( count , ops ) ) ) return '' . join ( seq ( ) )
renders the most common opcode pairs to a string in order of descending frequency .