code: def longestrunningaggregate(self, howmany):
      all = [(sum(v), len(v), k) for k, v in self.timings.items()]
      all.sort()
      all.reverse()
      return all[:howmany]
  
imports: import time
  import sys
  import weakref
label_desc: Use image node_id 20 for calling the APSWTracer obj's underlying member method code with example usage: obj.longestrunningaggregate(howmany) and returns: all