[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH v3] bloat-o-meter: line wrapped at max 75 columns to silence patch checkers
From:       Jones Syue 薛懷宗 <jonessyue () qnap ! com>
Date:       2024-03-15 3:48:00
Message-ID: SI2PR04MB5097C58BEDCF86996C6211A6DC282 () SI2PR04MB5097 ! apcprd04 ! prod ! outlook ! com
[Download RAW message or body]

> Change the outout of bloat-o-meter, line wrapped at maximum 75 columns;
> including 'function/old/new/delta' title and numbers, seperation line with
> '-', and the last line 'Total'. Also put 'Total' numbers to the last column
> in order to keep it aligned with previous 'delta' numbers.

This is an example, use awk to count length per line[1].

Before applied this patch:
72 function                                             old     new   delta
72 crond_dummy_func                                       -     211    +211
72 .rodata                                            59300   59404    +104
72 crond_main                                           704     709      +5
72 static.crond_dummy_local_int                           -       4      +4
72 crond_dummy_global_int                                 -       4      +4
78 ------------------------------------------------------------------------------
78 (add/remove: 3/0 grow/shrink: 2/0 up/down: 328/0)             Total: 328 bytes

After applied this patch:
75 function                                              old      new    delta
75 crond_dummy_func                                        -      211     +211
75 .rodata                                             59300    59404     +104
75 crond_main                                            704      709       +5
75 static.crond_dummy_local_int                            -        4       +4
75 crond_dummy_global_int                                  -        4       +4
75 ---------------------------------------------------------------------------
75 (add/remove: 3/0 grow/shrink: 2/0 up/down: 328/0)          Total bytes: 328

[1]
~/git/busybox/scripts/bloat-o-meter ~/busybox_unstripped_{orig,fix} \
| awk '{ print length, $0 }'

--

Regards,
Jones Syue | 薛懷宗
QNAP Systems, Inc.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic