LLVM
17.0.0git
include
llvm
XRay
RecordPrinter.h
Go to the documentation of this file.
1
//===- RecordPrinter.h - FDR Record Printer -------------------------------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
// An implementation of the RecordVisitor which prints an individual record's
10
// data in an adhoc format, suitable for human inspection.
11
//
12
//===----------------------------------------------------------------------===//
13
#ifndef LLVM_XRAY_RECORDPRINTER_H
14
#define LLVM_XRAY_RECORDPRINTER_H
15
16
#include "
llvm/Support/raw_ostream.h
"
17
#include "
llvm/XRay/FDRRecords.h
"
18
19
namespace
llvm
{
20
namespace
xray {
21
22
class
RecordPrinter
:
public
RecordVisitor
{
23
raw_ostream
&OS;
24
std::string Delim;
25
26
public
:
27
explicit
RecordPrinter
(
raw_ostream
&O, std::string
D
)
28
:
OS
(O), Delim(
std
::
move
(
D
)) {}
29
30
explicit
RecordPrinter
(
raw_ostream
&O) :
RecordPrinter
(O,
""
){};
31
32
Error
visit
(
BufferExtents
&)
override
;
33
Error
visit
(
WallclockRecord
&)
override
;
34
Error
visit
(
NewCPUIDRecord
&)
override
;
35
Error
visit
(
TSCWrapRecord
&)
override
;
36
Error
visit
(
CustomEventRecord
&)
override
;
37
Error
visit
(
CallArgRecord
&)
override
;
38
Error
visit
(
PIDRecord
&)
override
;
39
Error
visit
(
NewBufferRecord
&)
override
;
40
Error
visit
(
EndBufferRecord
&)
override
;
41
Error
visit
(
FunctionRecord
&)
override
;
42
Error
visit
(
CustomEventRecordV5
&)
override
;
43
Error
visit
(
TypedEventRecord
&)
override
;
44
};
45
46
}
// namespace xray
47
}
// namespace llvm
48
49
#endif
// LLVM_XRAY_RECORDPRINTER_H
D
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
FDRRecords.h
OS
raw_pwrite_stream & OS
Definition:
SampleProfWriter.cpp:53
llvm::Error
Lightweight error class with error context and mandatory checking.
Definition:
Error.h:156
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition:
raw_ostream.h:52
llvm::xray::BufferExtents
Definition:
FDRRecords.h:110
llvm::xray::CallArgRecord
Definition:
FDRRecords.h:291
llvm::xray::CustomEventRecordV5
Definition:
FDRRecords.h:235
llvm::xray::CustomEventRecord
Definition:
FDRRecords.h:206
llvm::xray::EndBufferRecord
Definition:
FDRRecords.h:359
llvm::xray::FunctionRecord
Definition:
FDRRecords.h:372
llvm::xray::NewBufferRecord
Definition:
FDRRecords.h:336
llvm::xray::NewCPUIDRecord
Definition:
FDRRecords.h:158
llvm::xray::PIDRecord
Definition:
FDRRecords.h:313
llvm::xray::RecordPrinter
Definition:
RecordPrinter.h:22
llvm::xray::RecordPrinter::visit
Error visit(BufferExtents &) override
Definition:
RecordPrinter.cpp:15
llvm::xray::RecordPrinter::RecordPrinter
RecordPrinter(raw_ostream &O)
Definition:
RecordPrinter.h:30
llvm::xray::RecordPrinter::RecordPrinter
RecordPrinter(raw_ostream &O, std::string D)
Definition:
RecordPrinter.h:27
llvm::xray::RecordVisitor
Definition:
FDRRecords.h:399
llvm::xray::TSCWrapRecord
Definition:
FDRRecords.h:184
llvm::xray::TypedEventRecord
Definition:
FDRRecords.h:262
llvm::xray::WallclockRecord
Definition:
FDRRecords.h:133
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::move
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Definition:
STLExtras.h:1946
std
Definition:
BitVector.h:858
raw_ostream.h
Generated on Sat Jun 3 2023 14:27:43 for LLVM by
1.9.6