diff options
-rwxr-xr-x | scripts/bloat-o-meter | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index f6608afb8..49f552717 100755 --- a/scripts/bloat-o-meter +++ b/scripts/bloat-o-meter | |||
@@ -21,6 +21,12 @@ for f in sys.argv[1], sys.argv[2]: | |||
21 | def getsizes(file): | 21 | def getsizes(file): |
22 | sym = {} | 22 | sym = {} |
23 | for l in os.popen("nm --size-sort " + file).readlines(): | 23 | for l in os.popen("nm --size-sort " + file).readlines(): |
24 | l = l.strip() | ||
25 | # Skip empty lines | ||
26 | if not len(l): continue | ||
27 | # Skip archive members | ||
28 | if len(l.split()) == 1 and l.endswith(':'): | ||
29 | continue | ||
24 | size, type, name = l[:-1].split() | 30 | size, type, name = l[:-1].split() |
25 | if type in "tTdDbBrR": | 31 | if type in "tTdDbBrR": |
26 | if "." in name: name = "static." + name.split(".")[0] | 32 | if "." in name: name = "static." + name.split(".")[0] |