aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-02-07 19:42:48 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2010-02-07 19:42:48 +0100
commiteb255752c14634f48c25e634fcf17b2479a160cc (patch)
tree69835f7cc69d18b3fdcbf3ac4a95942bd0cf8c74
parentf16d7c4bdf0d3e97760f9567ad449a968e2bc4eb (diff)
downloadbusybox-w32-eb255752c14634f48c25e634fcf17b2479a160cc.tar.gz
busybox-w32-eb255752c14634f48c25e634fcf17b2479a160cc.tar.bz2
busybox-w32-eb255752c14634f48c25e634fcf17b2479a160cc.zip
bloat-o-meter: convert to print() calls
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rwxr-xr-xscripts/bloat-o-meter8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter
index acee6bea9..95cbbe6b8 100755
--- a/scripts/bloat-o-meter
+++ b/scripts/bloat-o-meter
@@ -123,16 +123,16 @@ delta.reverse()
123if flag_timing: 123if flag_timing:
124 end_t3 = int(time.time() * 1e9) 124 end_t3 = int(time.time() * 1e9)
125 125
126print "%-48s %7s %7s %+7s" % ("function", "old", "new", "delta") 126print("%-48s %7s %7s %+7s" % ("function", "old", "new", "delta"))
127for d, n in delta: 127for d, n in delta:
128 if d: 128 if d:
129 old_sz = old.get(n, {}).get("size", "-") 129 old_sz = old.get(n, {}).get("size", "-")
130 new_sz = new.get(n, {}).get("size", "-") 130 new_sz = new.get(n, {}).get("size", "-")
131 print "%-48s %7s %7s %+7d" % (n, old_sz, new_sz, d) 131 print("%-48s %7s %7s %+7d" % (n, old_sz, new_sz, d))
132print "-"*78 132print("-"*78)
133total="(add/remove: %s/%s grow/shrink: %s/%s up/down: %s/%s)%%sTotal: %s bytes"\ 133total="(add/remove: %s/%s grow/shrink: %s/%s up/down: %s/%s)%%sTotal: %s bytes"\
134 % (add, remove, grow, shrink, up, -down, up-down) 134 % (add, remove, grow, shrink, up, -down, up-down)
135print total % (" "*(80-len(total))) 135print(total % (" "*(80-len(total))))
136if flag_timing: 136if flag_timing:
137 print("\n%d/%d; %d Parse origin/new; processing nsecs" % 137 print("\n%d/%d; %d Parse origin/new; processing nsecs" %
138 (end_t1-start_t1, end_t2-start_t2, end_t3-start_t3)) 138 (end_t1-start_t1, end_t2-start_t2, end_t3-start_t3))