aboutsummaryrefslogtreecommitdiff
path: root/scripts/bloat-o-meter (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bloat-o-meter: avoid double countingRon Yorston2021-03-091-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bloat-o-meter: add usage infoBartosz Golaszewski2013-10-161-3/+8
| | | | | Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bloat-o-meter: Remove unused codeBernhard Reutner-Fischer2012-03-301-15/+6
| | | | | | | The regex matching is way slower, so remove it since it was disabled anyway. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* bloat-o-meter: handle huge (hex) sizes.Bernhard Reutner-Fischer2012-03-301-1/+1
| | | | | | | dynamic symbols with size >99999 are printed in hex. see print_vma(psym->st_size, DEC_5) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* bloat-o-meter: don't require that pythin is in /usr/bin.Lauri Kasanen2011-07-081-2/+2
| | | | | Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bloat-o-meter: make it python3 compliantMarek Polacek2010-10-281-2/+2
| | | | | | | | Python 3 doesn't support the iterkeys() method anymore. Use iter(foo.keys()) instead of foo.iterkeys(). Signed-off-by: Marek Polacek <mmpolacek@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bloat-o-meter: convert to print() callsBernhard Reutner-Fischer2010-02-071-4/+4
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* bloat-o-meter: fix quadric behavior in alias resolutionBernhard Reutner-Fischer2010-02-071-29/+68
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* bloat-o-meter: teach it to handle aliasesBernhard Reutner-Fischer2010-02-021-26/+46
| | | | | | | | | | | | 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 <rep.dot.nop@gmail.com>
* bloat-o-meter: touchup argv handlingMike Frysinger2009-06-011-2/+2
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Reported-by: Matt Mackall <mpm@selenic.com>
* bloat-o-meter: fix tab/space mixingMike Frysinger2009-06-011-3/+3
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* - optionally pass additional flags down to nmBernhard Reutner-Fischer2008-05-231-5/+10
|
* - make Christian happyBernhard Reutner-Fischer2008-05-211-2/+1
|
* - skip empty lines and archive membersBernhard Reutner-Fischer2008-05-211-0/+6
|
* - bail out if either file does not existBernhard Reutner-Fischer2007-04-051-0/+5
| | | | Avoids filling my scrollback-buffer with superfluous information ;)
* od: fix buglet in --traditional, microoptimization,Denis Vlasenko2006-11-291-1/+1
| | | | | document coreutils bug bloat-o-meter: account for objects in rodata too
* Teach bloatometer about .rodata, and tweak the display into something thatRob Landley2006-05-291-8/+10
| | | | has a better chance of getting merged.
* - patch from Tito to pretty print the overall deltaBernhard Reutner-Fischer2006-05-261-0/+4
|
* Tweak suggested by Matt Mackall when I submitted the bloat-o-meter changesRob Landley2006-05-081-3/+2
| | | | back to linux-kernel...
* Add "make bloatcheck" to run Matt Mackall's bloat-o-meter. Copy an oldRob Landley2006-05-071-0/+60
busybox_unstripped to busybox_old, build a new version, and "make bloatcheck" to see a detailed breakdown of the size difference.