diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-13 14:37:36 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-13 14:37:36 +0000 |
commit | 288a2c654432c91e3c877378d5655b61b6803326 (patch) | |
tree | 047c5590d3c0a4242153487549f50561a672d154 /tools/tcmalloc | |
parent | 72cafc14c68ef07abd211b702962eaf185d8cbf1 (diff) | |
download | chromium_src-288a2c654432c91e3c877378d5655b61b6803326.zip chromium_src-288a2c654432c91e3c877378d5655b61b6803326.tar.gz chromium_src-288a2c654432c91e3c877378d5655b61b6803326.tar.bz2 |
Sort memory leaks by size
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10544118
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141889 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/tcmalloc')
-rwxr-xr-x | tools/tcmalloc/print-live-objects.py | 2 |
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"]) |