Logo Search packages:      
Sourcecode: zope-callprofiler version File versions

def CallProfiler::profiler::Transaction::endCall (   self,
  time_end = None 
)

Register the end of a call

Definition at line 210 of file profiler.py.

00210                                     :
        '''Register the end of a call
        '''
        if time_end is None:
            time_end = time.time()
        call = self.stack.pop()
        if call['events']:
            # insert a processing event
            previous = call['events'][-1]['time_end']
            info = {'time_total': time_end - previous}
            call['events'].append(info)
        call['time_end'] = time_end
        call['time_total'] = time_end - call['time_start']

    def finish(self, time_end=None):


Generated by  Doxygen 1.6.0   Back to index