[PATCH] D74205: [WIP][llvm-dwarfdump] Add the --show-sections-sizes option
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 7 03:32:27 PST 2020
jhenderson added a comment.
In D74205#1863596 <https://reviews.llvm.org/D74205#1863596>, @djtodoro wrote:
> I found it useful when testing some large patches, since the `llvm-size` does not calculate it, I usually do it manually or by some scripting.
>
> An example of the output:
>
> llvm-dwarfdump --show-sections-sizes test.o
> ----------------------------------------------------
> test.o: file format ELF64-x86-64
> ----------------------------------------------------
> SECTION SIZE
> ------------ -----------------------
> .debug_info 132 (19.67%)
> .debug_str 178 (26.53%)
> .debug_abbrev 120 (17.88%)
> .debug_line 74 (11.03%)
> .debug_ranges 0 (0.00%)
> .debug_loc 89 (13.26%)
>
> .debug_*: 593 (88.38%)
> ----------------------------------------------------
> TOTAL FILE SIZE: 671
> ----------------------------------------------------
Right, sorry, you posted this as I wrote up my comments!
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74205/new/
https://reviews.llvm.org/D74205
More information about the llvm-commits
mailing list