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

def CallProfiler::CallProfiler::CallProfiler::detailResults (   self,
  tid 
)

Show a detailed result

Definition at line 306 of file CallProfiler.py.

00306                                 :
        '''Show a detailed result
        '''
        transaction = profiler.transaction[tid]

        # do the HTML extra bits
        pm = profileable_modules
        for depth, info in transaction.listEvents():
            if info.has_key('events'):
                info['treepart'] = '| '*depth + '+-'
                if info['events'] and info.has_key('time_processing'):
                    percent = info['percentage_processing']
                    time_display = info['time_processing']
                else:
                    percent = info['percentage']
                    time_display = info['time_total']
            else:
                info['treepart'] = '| '*depth
                percent = info['percentage']
                time_display = info['time_total']
            info['time_display'] = time_display
            info['percentage_display'] = percent
            info['percentage_int'] = int(percent/2)
            info['icon'] = ''
            if info.has_key('meta_type'):
                module = pm[info['meta_type']]
                if module.icon:
                    info['icon'] = module.icon
            if percent > 10: info['colour'] = '#ffbbbb'
            elif percent > 5: info['colour'] = '#ffdbb9'
            elif percent > 3: info['colour'] = '#fff9b9'
            else: info['colour'] = ''

        return transaction

    security.declareProtected('View management screens', 'colour_key')
    def colour_key(self):


Generated by  Doxygen 1.6.0   Back to index