svn commit: trunk/busybox/scripts
aldot at busybox.net
aldot at busybox.net
Wed May 21 03:32:40 PDT 2008
Author: aldot
Date: 2008-05-21 03:32:39 -0700 (Wed, 21 May 2008)
New Revision: 22037
Log:
- skip empty lines and archive members
Modified:
trunk/busybox/scripts/bloat-o-meter
Changeset:
Modified: trunk/busybox/scripts/bloat-o-meter
===================================================================
--- trunk/busybox/scripts/bloat-o-meter 2008-05-21 07:57:38 UTC (rev 22036)
+++ trunk/busybox/scripts/bloat-o-meter 2008-05-21 10:32:39 UTC (rev 22037)
@@ -21,6 +21,12 @@
def getsizes(file):
sym = {}
for l in os.popen("nm --size-sort " + file).readlines():
+ l = l.strip()
+ # Skip empty lines
+ if not len(l): continue
+ # Skip archive members
+ if len(l.split()) == 1 and l.endswith(':'):
+ continue
size, type, name = l[:-1].split()
if type in "tTdDbBrR":
if "." in name: name = "static." + name.split(".")[0]
More information about the busybox-cvs
mailing list