diff options
author | Rob Landley <rob@landley.net> | 2006-05-08 18:30:33 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-05-08 18:30:33 +0000 |
commit | 712ba85b30426bc8fa093c21ae9a5d0018450cc7 (patch) | |
tree | a9d45a42c698f039f6ec8a302dc4b17bc490a9fe | |
parent | d61b8d8f9b055dc9341e8e5a9a329adb10c29fc7 (diff) | |
download | busybox-712ba85b30426bc8fa093c21ae9a5d0018450cc7.tar.gz |
Tweak suggested by Matt Mackall when I submitted the bloat-o-meter changes
back to linux-kernel...
-rwxr-xr-x | scripts/bloat-o-meter | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index af42f8402..ce59fc2d8 100755 --- a/scripts/bloat-o-meter +++ b/scripts/bloat-o-meter @@ -18,9 +18,8 @@ def getsizes(file): for l in os.popen("nm --size-sort " + file).readlines(): size, type, name = l[:-1].split() if type in "tTdDbB": - if name.find(".") != -1: name = "static." + name.split(".")[0] - if name in sym: sym[name] += int(size, 16) - else :sym[name] = int(size, 16) + if "." in name: name = "static." + name.split(".")[0] + sym[name] = sym.get(name, 0) + int(size, 16) return sym old = getsizes(sys.argv[1]) |