#NEWLINE# def proxy( self , * a , **b ) : #NEWLINE# #INDENT# if self . _log : #NEWLINE# #INDENT# for frame in reversed ( extract_stack ( ) ) : #NEWLINE# #INDENT# file = frame [ 0 ] #NEWLINE# if ( not file . endswith ( 'monkey_timer.py' ) ) : #NEWLINE# #INDENT# line = frame [ 1 ] #NEWLINE# self . _log . info ( ( ( ( ( self . _name + ' called by ' ) + file ) + ':' ) + str ( line ) ) ) #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# tuple = extract_stack ( ) [ ( - 2 ) ] #NEWLINE# #UNINDENT# self . _simultaneous += 1 #NEWLINE# start = self . _timer . _start_timing ( ) #NEWLINE# try : #NEWLINE# #INDENT# return self . _original ( * a , ** b ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# self . _timer . _stop_timing ( a , start ) #NEWLINE# self . _simultaneous -= 1