def finish_run(self, sender, **kwargs):

        alist = sorted(self.heap_urls.iteritems(),
            key=lambda (k,v): (v,k),
            reverse=True
        )

        for url, mem in alist[:10]:
            LOG.info("%s: %s heap", url, filesizeformat(mem))
Print the most heap consumed by a view
dataset/ETHPy150Open ericholscher/django-test-utils/test_utils/crawler/plugins/guppy_plugin.py/Heap.finish_run