[XRay] Add a RecordPrinter visitor for FDR Records
authorDean Michael Berris <dberris@google.com>
Wed, 5 Sep 2018 06:57:23 +0000 (06:57 +0000)
committerDean Michael Berris <dberris@google.com>
Wed, 5 Sep 2018 06:57:23 +0000 (06:57 +0000)
commitfbc59d92e6af968a8efd5f62fe51a60ee91d9478
tree7ee87de3e78151b394f7f7cc07a73ebe92519bee
parentb2b7f5f6d76d256331827f6cbc8e835282f30ed5
[XRay] Add a RecordPrinter visitor for FDR Records

Summary:
This change adds a `RecordPrinter` type which does some basic text
serialization of the FDR record instances. This is one component of the
tool we're building to dump the records from an FDR mode log as-is.

This is a small part of D50441.

Reviewers: eizan, kpw

Subscribers: mgorny, hiraditya, llvm-commits

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

llvm-svn: 341447
llvm/include/llvm/XRay/RecordPrinter.h [new file with mode: 0644]
llvm/lib/XRay/CMakeLists.txt
llvm/lib/XRay/RecordPrinter.cpp [new file with mode: 0644]
llvm/unittests/XRay/CMakeLists.txt
llvm/unittests/XRay/FDRRecordPrinterTest.cpp [new file with mode: 0644]