[Toybox] request for comments: pybloat.py

Elie De Brauwer eliedebrauwer at gmail.com
Tue Feb 14 22:11:03 PST 2012


Hello all,

Since Rob mentioned earlier he wanted to replace the GPL parts of the 
bulid process by non-GPL counterparts, one of them being the bloat-o-meter.
In attachment you find a bloat-o-meter replacement called pybloat, not 
in the form of a patch, but rather in the form of something to play 
with/shoot at, hence comments are welcome.

Whilst the bloat-o-meter is a wrapper around nm --sort-size filtering 
out symbols from the BSS, data and text section and uses readelf to 
obtain the .rodata size. This first version bases itself fully on the 
output of nm (which will show explicit deltas in the .ro section instead 
of just .rodata).

I give this some quick tests on toybox itself and so far it seems to 
behave.

But feedback/wisdom/comments are welcomed.

Only requirement is python 2.7 since it's using argparse instead of 
optparse.

my 2 cents
E.

-- 
Elie De Brauwer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pybloat.py
Type: text/x-python
Size: 4471 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20120215/2c6b1e38/attachment-0006.py>


More information about the Toybox mailing list