[all-commits] [llvm/llvm-project] 7fb9bc: [dsymutil] Add option to print statistics about th...
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Wed May 6 19:49:02 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 7fb9bcd3da64fee7b1116d703beb5db9ef2473bc
https://github.com/llvm/llvm-project/commit/7fb9bcd3da64fee7b1116d703beb5db9ef2473bc
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2020-05-06 (Wed, 06 May 2020)
Changed paths:
M llvm/docs/CommandGuide/dsymutil.rst
M llvm/include/llvm/DWARFLinker/DWARFLinker.h
M llvm/lib/DWARFLinker/DWARFLinker.cpp
A llvm/test/tools/dsymutil/X86/statistics.test
M llvm/test/tools/dsymutil/cmdline.test
M llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
M llvm/tools/dsymutil/LinkUtils.h
M llvm/tools/dsymutil/Options.td
M llvm/tools/dsymutil/dsymutil.cpp
Log Message:
-----------
[dsymutil] Add option to print statistics about the .debug_info size.
This patch adds statistics about the contribution of each object file to
the linked debug info. When --statistics is passed to dsymutil, it
prints a table after linking as illustrated below.
It lists the object file name, the size of the debug info in the object
file in bytes, and the absolute size contribution to the linked dSYM and
the percentage difference. The table is sorted by the output size, so
the object files contributing the most to the link are listed first.
.debug_info section size (in bytes)
-------------------------------------------------------------------------------
Filename Object dSYM Change
-------------------------------------------------------------------------------
basic2.macho.x86_64.o 210b 165b -24.00%
basic3.macho.x86_64.o 177b 150b -16.51%
basic1.macho.x86_64.o 125b 129b 3.15%
-------------------------------------------------------------------------------
Total 512b 444b -14.23%
-------------------------------------------------------------------------------
Differential revision: https://reviews.llvm.org/D79513
More information about the All-commits
mailing list