[PATCH] D79513: [dsymutil] Print statistics about debug_info reduction in verbose mode.

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 6 12:26:12 PDT 2020


JDevlieghere created this revision.
JDevlieghere added reviewers: friss, aprantl, avl.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
JDevlieghere updated this revision to Diff 262446.
JDevlieghere marked an inline comment as done.

This patch adds statistics about the the contribution of each object file to the linked debug info to verbose mode. After linking it prints a table as illustrated below with the object file, the old debug info size, the new debug info size 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.

  -------------------------------------------------------------------------------
  libbasic.a(basic2.macho.x86_64.o)                      210 -> 165      (24.00%)
  libbasic.a(basic3.macho.x86_64.o)                      177 -> 150      (16.51%)
  basic1.macho.x86_64.o                                  125 -> 129      (3.15%)
  -------------------------------------------------------------------------------


https://reviews.llvm.org/D79513

Files:
  llvm/include/llvm/DWARFLinker/DWARFLinker.h
  llvm/lib/DWARFLinker/DWARFLinker.cpp
  llvm/test/tools/dsymutil/X86/verbose.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79513.262446.patch
Type: text/x-patch
Size: 7151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200506/13b43ffe/attachment-0001.bin>


More information about the llvm-commits mailing list