1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/lib/DWARFLinker
Jonas Devlieghere 5e66aeab68 [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
2020-05-06 19:48:45 -07:00
..
CMakeLists.txt [cmake] LLVMDWARFLinker - add include/llvm/DWARFLinker header path 2020-04-18 12:31:41 +01:00
DWARFLinker.cpp [dsymutil] Add option to print statistics about the .debug_info size. 2020-05-06 19:48:45 -07:00
DWARFLinkerCompileUnit.cpp [dsymutil] Avoid copying swiftinterfaces from the SDK into the dsym bundle 2020-02-26 12:22:50 -08:00
DWARFLinkerDeclContext.cpp [Debuginfo][NFC] Avoid double calling of DWARFDie::find(DW_AT_name). 2020-05-03 14:00:25 +03:00
DWARFStreamer.cpp [DWARFLinker][dsymutil] followup for 88c2137b6d49f88186d0957a4e2d8030a3967334 2020-04-08 16:46:52 +03:00
LLVMBuild.txt