#NEWLINE# def __exit__( self , exc_tp , exc_v , exc_tb ) : #NEWLINE# #INDENT# self . profile . disable ( ) #NEWLINE# buf = six . StringIO ( ) #NEWLINE# ps = pstats . Stats ( exc_v . profile , stream = buf ) #NEWLINE# ps = ps . sort_stats ( * self . stats_ordering ) #NEWLINE# percent_limit = max ( 0.0 , max ( 1.0 , ( self . args . limit / 100.0 ) ) ) #NEWLINE# ps . print_stats ( percent_limit ) #NEWLINE# print_header ( self . name ) #NEWLINE# needs_newline = False #NEWLINE# for line in buf . getvalue ( ) . splitlines ( ) : #NEWLINE# #INDENT# line = line . lstrip ( ) #NEWLINE# if line : #NEWLINE# #INDENT# print ( line ) #NEWLINE# needs_newline = True #NEWLINE# #UNINDENT# #UNINDENT# if needs_newline : #NEWLINE# #INDENT# print ( '' )