Switch to side-by-side view
--- a/Allura/allura/lib/stats.py +++ b/Allura/allura/lib/stats.py @@ -19,6 +19,11 @@ ('%s=%.0fms' % (k,v*1000)) for k,v in sorted(self.timers.iteritems())) return '%s: %s' % (self.url, stats) + + def asdict(self): + return dict( + url=self.url, + timers=self.timers) @contextmanager def timing(self, name):