#NEWLINE# def _format_trace( self , trace , show_diff ) : #NEWLINE# #INDENT# if ( ( not self . show_count ) and ( not self . show_average ) ) : #NEWLINE# #INDENT# if show_diff : #NEWLINE# #INDENT# return _format_size_diff ( trace [ 1 ] , trace [ 0 ] , self . color ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return _format_size ( trace [ 1 ] , self . color ) #NEWLINE# #UNINDENT# #UNINDENT# parts = [ ] #NEWLINE# if self . show_size : #NEWLINE# #INDENT# if show_diff : #NEWLINE# #INDENT# text = _format_size_diff ( trace [ 1 ] , trace [ 0 ] , self . color ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# text = _format_size ( trace [ 1 ] , self . color ) #NEWLINE# #UNINDENT# parts . append ( ( 'size=%s' % text ) ) #NEWLINE# #UNINDENT# if ( self . show_count and ( trace [ 3 ] or trace [ 2 ] ) ) : #NEWLINE# #INDENT# text = ( 'count=%s' % trace [ 3 ] ) #NEWLINE# if show_diff : #NEWLINE# #INDENT# text += ( ' (%+i)' % trace [ 2 ] ) #NEWLINE# #UNINDENT# parts . append ( text ) #NEWLINE# #UNINDENT# if ( self . show_average and ( trace [ 3 ] > 1 ) ) : #NEWLINE# #INDENT# parts . append ( ( 'average=%s' % _format_size ( ( trace [ 1 ] // trace [ 3 ] ) , False ) ) ) #NEWLINE# #UNINDENT# return ', ' . join ( parts )