summaryrefslogtreecommitdiffstats
path: root/bin/objcounts.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-03-01 13:27:51 (GMT)
committerSteven Knight <knight@baldmt.com>2005-03-01 13:27:51 (GMT)
commitfe606cd36331a41959d57fa41f7e8fe139f31f3f (patch)
tree73e73a84d22f8ce1a329f1eaad502886dd7e514a /bin/objcounts.py
parentc4b35b0ad854432a32fe9d09c2fdd8bdafc40fd8 (diff)
downloadSCons-fe606cd36331a41959d57fa41f7e8fe139f31f3f.zip
SCons-fe606cd36331a41959d57fa41f7e8fe139f31f3f.tar.gz
SCons-fe606cd36331a41959d57fa41f7e8fe139f31f3f.tar.bz2
Group --debug=count output by object modules.
Diffstat (limited to 'bin/objcounts.py')
-rw-r--r--bin/objcounts.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/bin/objcounts.py b/bin/objcounts.py
index 7aa293b..1b72837 100644
--- a/bin/objcounts.py
+++ b/bin/objcounts.py
@@ -51,7 +51,19 @@ for k in c1.keys():
try:
common[k] = (c1[k], c2[k])
except KeyError:
- pass
+ # Transition: we added the module to the names of a bunch of
+ # the logged objects. Assume that c1 might be from an older log
+ # without the modules in the names, and look for an equivalent
+ # in c2.
+ if not '.' in k:
+ s = '.'+k
+ l = len(s)
+ for k2 in c2.keys():
+ if k2[-l:] == s:
+ common[k2] = (c1[k], c2[k2])
+ del c1[k]
+ del c2[k2]
+ break
else:
del c1[k]
del c2[k]