OSDN Git Service

[llvm-pdbutil] Add support for dumping detailed module stats.
authorZachary Turner <zturner@google.com>
Mon, 21 Aug 2017 14:53:25 +0000 (14:53 +0000)
committerZachary Turner <zturner@google.com>
Mon, 21 Aug 2017 14:53:25 +0000 (14:53 +0000)
commitb6d8c58d4121b2f45a3ef65760783a105b8b32b6
tree52e3a3a86eb69deb18b2286e9a258a9539f99740
parentf191249bc8e5ebe4660c7bfd5cbec64cb5999e8a
[llvm-pdbutil] Add support for dumping detailed module stats.

This adds support for dumping a summary of module symbols
and CodeView debug chunks.  This option prints a table for
each module of all of the symbols that occurred in the module
and the number of times it occurred and total byte size.  Then
at the end it prints the totals for the entire file.

Additionally, this patch adds the -jmc (just my code) option,
which suppresses modules which are from external libraries or
linker imports, so that you can focus only on the object files
and libraries that originate from your own source code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311338 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/llvm/DebugInfo/PDB/Native/ModuleDebugStream.h
include/llvm/DebugInfo/PDB/Native/PDBFile.h
lib/DebugInfo/PDB/Native/PDBFile.cpp
test/DebugInfo/PDB/just-my-code.test [new file with mode: 0644]
test/DebugInfo/PDB/module-stats.test [new file with mode: 0644]
test/DebugInfo/PDB/pdbdump-headers.test
tools/llvm-pdbutil/BytesOutputStyle.cpp
tools/llvm-pdbutil/BytesOutputStyle.h
tools/llvm-pdbutil/Diff.cpp
tools/llvm-pdbutil/DumpOutputStyle.cpp
tools/llvm-pdbutil/DumpOutputStyle.h
tools/llvm-pdbutil/FormatUtil.cpp
tools/llvm-pdbutil/FormatUtil.h
tools/llvm-pdbutil/MinimalSymbolDumper.cpp
tools/llvm-pdbutil/StreamUtil.cpp
tools/llvm-pdbutil/StreamUtil.h
tools/llvm-pdbutil/llvm-pdbutil.cpp
tools/llvm-pdbutil/llvm-pdbutil.h