summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorcomicfans <comicfans44@gmail.com>2016-01-20 08:28:36 +0800
committerJose Fonseca <jfonseca@vmware.com>2016-01-22 22:37:46 +0000
commitbef0632ed8ae0e14aa535549ee472748320198ed (patch)
treea087013104a2208070c9e0a66bdedd1e70d54fb1 /scripts
parentd1caa422cc784a99f200d6f96ff0578d112a05c4 (diff)
scripts: output same subject leak sorted by generate call no
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/leaks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/leaks.py b/scripts/leaks.py
index 0459060c..68dcd944 100755
--- a/scripts/leaks.py
+++ b/scripts/leaks.py
@@ -127,7 +127,7 @@ class LeakDetector(unpickle.Unpickler):
self.dumpNamespaceLeaks(currentCallNo, objectDict, kind)
def dumpNamespaceLeaks(self, currentCallNo, objectDict, kind):
- for name, creationCallNo in objectDict.iteritems():
+ for name, creationCallNo in (sorted(objectDict.iteritems(),key=lambda t: t[1])):
sys.stderr.write('%u: error: %s %u was not destroyed until %s\n' % (creationCallNo, kind, name, currentCallNo))
objectDict.clear()