[PATCH] D74205: [WIP][llvm-dwarfdump] Add the --show-sections-sizes option
Djordje Todorovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 7 03:23:40 PST 2020
djtodoro added a comment.
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
----------------------------------------------------
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74205/new/
https://reviews.llvm.org/D74205
More information about the llvm-commits
mailing list