def summaryByURL(self):
        """Calculate some summary info
        """
        l = profiler.listTransactions(sort="time_start")

        # print up the summary
        summary = {}
        for transaction in l:
            tt = transaction.time_total
            url = transaction.url
            if summary.has_key(url):
                d = summary[url]
                d["min"] = min(d["min"], tt)
                d["max"] = max(d["max"], tt)
                d["tot"] += tt
                d["num"] += 1
                d["ave"] = d["tot"] / d["num"]
                d["transactions"].append((tt, transaction))
            else:
                summary[url] = {
                    "min": tt,
                    "max": tt,
                    "tot": tt,
                    "num": 1,
                    "ave": tt,
                    "transactions": [(tt, transaction)],
                    "truncated_url": transaction.truncated_url,
                }
        summary = summary.items()
        summary.sort()
        return summary
    def summaryByURL(self):
        '''Calculate some summary info
        '''
        l = profiler.listTransactions(sort='time_start')

        # print up the summary
        summary = {}
        for transaction in l:
            tt = transaction.time_total
            url = transaction.url
            if summary.has_key(url):
                d = summary[url]
                d['min'] = min(d['min'], tt)
                d['max'] = max(d['max'], tt)
                d['tot'] += tt
                d['num'] += 1
                d['ave'] = d['tot'] / d['num']
                d['transactions'].append((tt, transaction))
            else:
                summary[url] = {
                    'min': tt,
                    'max': tt,
                    'tot': tt,
                    'num': 1,
                    'ave': tt,
                    'transactions': [(tt, transaction)],
                    'truncated_url': transaction.truncated_url
                }
        summary = summary.items()
        summary.sort()
        return summary
    def summaryByURL(self):
        '''Calculate some summary info
        '''
        l = profiler.listTransactions(sort='time_start')

        # print up the summary
        summary = {}
        for transaction in l:
            tt = transaction.time_total
            url = transaction.url
            if url in summary:
                d = summary[url]
                d['min'] = min(d['min'], tt)
                d['max'] = max(d['max'], tt)
                d['tot'] += tt
                d['num'] += 1
                d['ave'] = d['tot'] / d['num']
                d['transactions'].append((tt, transaction))
            else:
                summary[url] = {'min': tt, 'max': tt, 'tot': tt, 'num': 1,
                                'ave': tt, 'transactions': [(tt, transaction)],
                                'truncated_url': transaction.truncated_url}
        summary = summary.items()
        summary.sort()
        return summary
 def summary(self):
     """Calculate summary info
     """
     # sort = self.REQUEST['sort']
     # if sort:
     #    return profiler.listTransactions(sort=sort)
     # rsort = self.REQUEST['rsort']
     # if rsort:
     #    return profiler.listTransactions(rsort=rsort)
     return profiler.listTransactions(sort="time_start")
 def summary(self):
     '''Calculate summary info
     '''
     #sort = self.REQUEST['sort']
     #if sort:
     #    return profiler.listTransactions(sort=sort)
     #rsort = self.REQUEST['rsort']
     #if rsort:
     #    return profiler.listTransactions(rsort=rsort)
     return profiler.listTransactions(sort='time_start')