diff options
author | comicfans <comicfans44@gmail.com> | 2016-01-20 08:28:36 +0800 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2016-01-22 22:37:46 +0000 |
commit | bef0632ed8ae0e14aa535549ee472748320198ed (patch) | |
tree | a087013104a2208070c9e0a66bdedd1e70d54fb1 /scripts | |
parent | d1caa422cc784a99f200d6f96ff0578d112a05c4 (diff) |
scripts: output same subject leak sorted by generate call no
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/leaks.py | 2 |
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() |