mirror of
https://github.com/sheumann/hush.git
synced 2024-12-25 18:33:06 +00:00
Tweak suggested by Matt Mackall when I submitted the bloat-o-meter changes
back to linux-kernel...
This commit is contained in:
parent
d61b8d8f9b
commit
712ba85b30
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user