<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/scripts/bloat-o-meter, branch tab_completion2</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=tab_completion2</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=tab_completion2'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2021-03-09T16:25:07+00:00</updated>
<entry>
<title>bloat-o-meter: avoid double counting</title>
<updated>2021-03-09T16:25:07+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-03-08T19:30:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=0b25e810ed73334d30f99ba7073f21369b33ab18'/>
<id>urn:sha1:0b25e810ed73334d30f99ba7073f21369b33ab18</id>
<content type='text'>
Disable 'echo' in the default config, run 'make baseline', then
re-enable 'echo' and run 'make bloatcheck':

function                                             old     new   delta
.rodata                                           182521  182622    +101
packed_usage                                       33714   33792     +78
applet_main                                         3168    3176      +8
applet_names                                        2730    2735      +5
applet_suid                                           99     100      +1
applet_install_loc                                   198     199      +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/0 up/down: 194/0)             Total: 194 bytes
   text	   data	    bss	    dec	    hex	filename
 955052	   4195	   1808	 961055	  eaa1f	busybox_old
 955153	   4195	   1808	 961156	  eaa84	busybox_unstripped

The Total bytes value doesn't equal the change in the size of the
binary.  The packed_usage and applet_* items are in .rodata and
are counted twice.  With this modified bloat-o-meter the size of
named items is deducted from .rodata:

function                                             old     new   delta
packed_usage                                       33714   33792     +78
applet_main                                         3168    3176      +8
.rodata                                           105105  105113      +8
applet_names                                        2730    2735      +5
applet_suid                                           99     100      +1
applet_install_loc                                   198     199      +1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 6/0 up/down: 101/0)             Total: 101 bytes
   text	   data	    bss	    dec	    hex	filename
 955052	   4195	   1808	 961055	  eaa1f	busybox_old
 955153	   4195	   1808	 961156	  eaa84	busybox_unstripped

v2: Sections numbered less than 10 were always being omitted from
    consideration because splitting "[ 1] .interp" leaves "1]" in
    x[1] where the section name is expected.  This wasn't a problem
    for .rodata (numbered 15 in my testing) but let's fix it anyway.

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>bloat-o-meter: add usage info</title>
<updated>2013-10-16T17:18:05+00:00</updated>
<author>
<name>Bartosz Golaszewski</name>
<email>bartekgola@gmail.com</email>
</author>
<published>2013-10-16T17:18:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=28a209466f43c22db42dd02baa136ac7ac25069b'/>
<id>urn:sha1:28a209466f43c22db42dd02baa136ac7ac25069b</id>
<content type='text'>
Signed-off-by: Bartosz Golaszewski &lt;bartekgola@gmail.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>bloat-o-meter: Remove unused code</title>
<updated>2012-03-30T17:50:39+00:00</updated>
<author>
<name>Bernhard Reutner-Fischer</name>
<email>rep.dot.nop@gmail.com</email>
</author>
<published>2012-03-30T17:50:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=25dbb0743e58fc91ecb7ff5c793c5519eec45494'/>
<id>urn:sha1:25dbb0743e58fc91ecb7ff5c793c5519eec45494</id>
<content type='text'>
The regex matching is way slower, so remove it since it was disabled
anyway.

Signed-off-by: Bernhard Reutner-Fischer &lt;rep.dot.nop@gmail.com&gt;
</content>
</entry>
<entry>
<title>bloat-o-meter: handle huge (hex) sizes.</title>
<updated>2012-03-30T17:26:40+00:00</updated>
<author>
<name>Bernhard Reutner-Fischer</name>
<email>rep.dot.nop@gmail.com</email>
</author>
<published>2012-03-30T17:14:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b1b70969e06658555d07d5cab40fb8a70c251e1b'/>
<id>urn:sha1:b1b70969e06658555d07d5cab40fb8a70c251e1b</id>
<content type='text'>
dynamic symbols with size &gt;99999 are printed in hex.
see print_vma(psym-&gt;st_size, DEC_5)

Signed-off-by: Bernhard Reutner-Fischer &lt;rep.dot.nop@gmail.com&gt;
</content>
</entry>
<entry>
<title>bloat-o-meter: don't require that pythin is in /usr/bin.</title>
<updated>2011-07-08T08:56:58+00:00</updated>
<author>
<name>Lauri Kasanen</name>
<email>curaga@operamail.com</email>
</author>
<published>2011-07-08T08:56:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=98f213ed7940d70a5ba7ea502469e51da8b0a2b0'/>
<id>urn:sha1:98f213ed7940d70a5ba7ea502469e51da8b0a2b0</id>
<content type='text'>
Signed-off-by: Lauri Kasanen &lt;curaga@operamail.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>bloat-o-meter: make it python3 compliant</title>
<updated>2010-10-28T19:39:40+00:00</updated>
<author>
<name>Marek Polacek</name>
<email>mmpolacek@gmail.com</email>
</author>
<published>2010-10-26T00:34:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=8410ac1a073272affe8acdb0da67e5753ea051f8'/>
<id>urn:sha1:8410ac1a073272affe8acdb0da67e5753ea051f8</id>
<content type='text'>
Python 3 doesn't support the iterkeys() method anymore.  Use
iter(foo.keys()) instead of foo.iterkeys().

Signed-off-by: Marek Polacek &lt;mmpolacek@gmail.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>bloat-o-meter: convert to print() calls</title>
<updated>2010-02-07T18:42:48+00:00</updated>
<author>
<name>Bernhard Reutner-Fischer</name>
<email>rep.dot.nop@gmail.com</email>
</author>
<published>2010-02-07T18:42:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=eb255752c14634f48c25e634fcf17b2479a160cc'/>
<id>urn:sha1:eb255752c14634f48c25e634fcf17b2479a160cc</id>
<content type='text'>
Signed-off-by: Bernhard Reutner-Fischer &lt;rep.dot.nop@gmail.com&gt;
</content>
</entry>
<entry>
<title>bloat-o-meter: fix quadric behavior in alias resolution</title>
<updated>2010-02-07T18:26:18+00:00</updated>
<author>
<name>Bernhard Reutner-Fischer</name>
<email>rep.dot.nop@gmail.com</email>
</author>
<published>2010-02-07T18:26:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=f16d7c4bdf0d3e97760f9567ad449a968e2bc4eb'/>
<id>urn:sha1:f16d7c4bdf0d3e97760f9567ad449a968e2bc4eb</id>
<content type='text'>
Signed-off-by: Bernhard Reutner-Fischer &lt;rep.dot.nop@gmail.com&gt;
</content>
</entry>
<entry>
<title>bloat-o-meter: teach it to handle aliases</title>
<updated>2010-02-02T19:09:10+00:00</updated>
<author>
<name>Bernhard Reutner-Fischer</name>
<email>rep.dot.nop@gmail.com</email>
</author>
<published>2010-01-30T17:01:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=659507f84e0e25eb0f3d6bfa9a9d807c89fc251e'/>
<id>urn:sha1:659507f84e0e25eb0f3d6bfa9a9d807c89fc251e</id>
<content type='text'>
Previously aliases were counted as full implementation taking up space:
setservent                                            64      55      -9
__GI_setservent                                       64      55      -9
getservent_r                                         420     319    -101
__GI_getservent_r                                    420     319    -101

Teach it to properly handle aliases.

Signed-off-by: Bernhard Reutner-Fischer &lt;rep.dot.nop@gmail.com&gt;
</content>
</entry>
<entry>
<title>bloat-o-meter: touchup argv handling</title>
<updated>2009-06-01T20:37:27+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@gentoo.org</email>
</author>
<published>2009-06-01T20:37:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=98f74034cd23e708686bda38975fa0691e5be971'/>
<id>urn:sha1:98f74034cd23e708686bda38975fa0691e5be971</id>
<content type='text'>
Signed-off-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Reported-by: Matt Mackall &lt;mpm@selenic.com&gt;
</content>
</entry>
</feed>
