summaryrefslogtreecommitdiffstats
path: root/tools/tcmalloc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tcmalloc')
-rwxr-xr-xtools/tcmalloc/print-live-objects.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tcmalloc/print-live-objects.py b/tools/tcmalloc/print-live-objects.py
index 9886fd1..dfed9c6 100755
--- a/tools/tcmalloc/print-live-objects.py
+++ b/tools/tcmalloc/print-live-objects.py
@@ -80,7 +80,7 @@ def Main(argv):
if not traces:
print "No leaks found!"
- for trace in traces:
+ for trace in sorted(traces, key=lambda x: -x["size"]):
print "Leak of %d bytes at address %s" % (trace["size"], trace["address"])
for frame in trace["frames"]:
print " %s (%s)" % (frame["name"], frame["location"])