OSDN Git Service

[XRay] Add the `llvm-xray fdr-dump` implementation
authorDean Michael Berris <dberris@google.com>
Tue, 11 Sep 2018 00:22:53 +0000 (00:22 +0000)
committerDean Michael Berris <dberris@google.com>
Tue, 11 Sep 2018 00:22:53 +0000 (00:22 +0000)
commitdd24af18f685008660c6115cbffeada44d34528b
tree07025e1b21d6836f190931c5cb6819c9607f9755
parenta83a0234ccbba22af636c2b861c65766d912277a
[XRay] Add the `llvm-xray fdr-dump` implementation

Summary:
In this change, we implement a `BlockPrinter` which orders records in a
Block that's been indexed by the `BlockIndexer`. This is used in the
`llvm-xray fdr-dump` tool which ties together the various types and
utilities we've been working on, to allow for inspection of XRay FDR
mode traces both with and without verification.

This change is the final step of the refactoring of D50441.

Reviewers: mboerger, eizan

Subscribers: mgorny, hiraditya, llvm-commits

Differential Revision: https://reviews.llvm.org/D51846

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341887 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/XRay/BlockPrinter.h [new file with mode: 0644]
lib/XRay/BlockPrinter.cpp [new file with mode: 0644]
lib/XRay/CMakeLists.txt
test/tools/llvm-xray/X86/fdr-dump-arg1-version-3.txt [new file with mode: 0644]
test/tools/llvm-xray/X86/fdr-dump-arg1.txt [new file with mode: 0644]
tools/llvm-xray/CMakeLists.txt
tools/llvm-xray/xray-fdr-dump.cpp [new file with mode: 0644]
unittests/XRay/CMakeLists.txt
unittests/XRay/FDRRecordsTest.cpp [new file with mode: 0644]