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

def CallProfiler::profiler::Transaction::listEvents (   self,
  call = None,
  depth = 0 
)

Flatten the events list

Definition at line 273 of file profiler.py.

00273                                             :
        '''Flatten the events list
        '''
        if call is None: call = self
        l = []
        for event in call['events']:
            if event.has_key('events'):
                l.append((depth, event))
                l = l + self.listEvents(event, depth+1)
            elif event['percentage'] > .5:
                l.append((depth, event))
        return l

    def strEvents(self, call=None, depth=0):


Generated by  Doxygen 1.6.0   Back to index