[PATCH] D37233: [llvm-pdbutil] Print detailed S_UDT stats

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 28 14:46:37 PDT 2017


zturner created this revision.
Herald added a subscriber: hiraditya.

This breaks down all `S_UDT` records in a PDB file by the leaf kind it points to and prints counts and size totals for each one.

Additionally, it breaks down the records by namespace.  In the future I intend to add object file support so we can get this kind of output with individual object files as well, whish should help greatly in figuring out PDB size issues.


https://reviews.llvm.org/D37233

Files:
  llvm/include/llvm/DebugInfo/PDB/Native/SymbolStream.h
  llvm/lib/DebugInfo/PDB/Native/SymbolStream.cpp
  llvm/test/DebugInfo/PDB/module-stats.test
  llvm/test/DebugInfo/PDB/udt-stats.test
  llvm/tools/llvm-pdbutil/DumpOutputStyle.cpp
  llvm/tools/llvm-pdbutil/DumpOutputStyle.h
  llvm/tools/llvm-pdbutil/FormatUtil.cpp
  llvm/tools/llvm-pdbutil/FormatUtil.h
  llvm/tools/llvm-pdbutil/MinimalTypeDumper.cpp
  llvm/tools/llvm-pdbutil/llvm-pdbutil.cpp
  llvm/tools/llvm-pdbutil/llvm-pdbutil.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37233.112972.patch
Type: text/x-patch
Size: 15560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170828/4073c25f/attachment.bin>


More information about the llvm-commits mailing list