#NEWLINE# def print_generic( self , n = 50 , method = 'time' ) : #NEWLINE# #INDENT# slowest = sorted ( ( ( getattr ( node , method ) ( ) , node . name ( ) ) for node in self . linearize ( ) ) ) [ ( - n ) : ] #NEWLINE# for ( time , name ) in time [ : : ( - 1 ) ] : #NEWLINE# #INDENT# print ( ( '%s %s' % ( time , name ) ) )