• Matt Mackall's avatar
    [PATCH] tiny: Add bloat-o-meter to scripts · d960600d
    Matt Mackall authored
    This is a rewrite of Andi Kleen's bloat-o-meter with sorting and reporting of
    gainers/decliners.  Sample output:
    
    add/remove: 0/8 grow/shrink: 2/0 up/down: 88/-4424 (-4336)
    function                                     old     new   delta
    __copy_to_user_ll                             59     103     +44
    __copy_from_user_ll                           59     103     +44
    fill_note                                     32       -     -32
    maydump                                       58       -     -58
    dump_seek                                     67       -     -67
    writenote                                    180       -    -180
    elf_dump_thread_status                       274       -    -274
    fill_psinfo                                  308       -    -308
    fill_prstatus                                466       -    -466
    elf_core_dump                               3039       -   -3039
    
    The summary line says:
     no functions added, 8 removed
     two functions grew, none shrunk
     we gained 88 bytes and lost 4424 (or -4336 net)
    
    This work was sponsored in part by CE Linux Forum
    Signed-off-by: default avatarMatt Mackall <mpm@selenic.com>
    Cc: Andi Kleen <ak@muc.de>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    d960600d
bloat-o-meter 1.52 KB