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

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

Register the end of this transaction

Definition at line 224 of file profiler.py.

00224                                    :
        '''Register the end of this transaction
        '''
        if time_end is None:
            time_end = time.time()
        self.time_end = time_end
        self.time_total = self.time_end - self.time_start
      self.num_calls = {}
        self.calculate_totals(self)
        if len(self.url) < 100:
            self.truncated_url = self.url
        else:
            self.truncated_url = self.url[:50] + '...' + self.url[-50:]
        self.str_time_start = time.strftime('%Y-%m-%d %H:%M:%S',
            time.localtime(self.time_start))

    def calculate_totals(self, call):


Generated by  Doxygen 1.6.0   Back to index