13 #ifndef LLVM_LIB_XRAY_FDRRECORDS_H_ 14 #define LLVM_LIB_XRAY_FDRRECORDS_H_ 29 class RecordInitializer;
88 static constexpr
int kMetadataBodySize = 15;
134 uint64_t Seconds = 0;
146 Seconds(S), Nanos(N) {}
175 uint64_t
tsc()
const {
return TSC; }
185 uint64_t BaseTSC = 0;
197 uint64_t
tsc()
const {
return BaseTSC; }
221 Size(S), TSC(T), CPU(C),
Data(
std::move(D)) {}
224 uint64_t
tsc()
const {
return TSC; }
249 Size(S), Delta(D),
Data(
std::move(P)) {}
252 int32_t
delta()
const {
return Delta; }
277 Size(S), Delta(D),
Data(
std::move(P)) {}
280 int32_t
delta()
const {
return Delta; }
327 int32_t
pid()
const {
return PID; }
350 int32_t
tid()
const {
return TID; }
378 static constexpr
unsigned kFunctionRecordSize = 8;
449 #endif // LLVM_LIB_XRAY_FDRRECORDS_H_ int32_t functionId() const
RecordKind getRecordType() const
virtual ~Record()=default
This class represents lattice values for constants.
RecordInitializer(DataExtractor &DE, uint64_t &OP)
TSCWrapRecord(uint64_t B)
RecordTypes recordType() const
CustomEventRecordV5(int32_t S, int32_t D, std::string P)
static bool classof(const Record *R)
WallclockRecord(uint64_t S, uint32_t N)
static bool classof(const Record *R)
static bool classof(const Record *R)
TypedEventRecord(int32_t S, int32_t D, uint16_t E, std::string P)
CustomEventRecord(uint64_t S, uint64_t T, uint16_t C, std::string D)
static bool classof(const Record *R)
static bool classof(const Record *R)
NewCPUIDRecord(uint16_t C, uint64_t T)
static bool classof(const Record *R)
static bool classof(const Record *R)
virtual Error apply(RecordVisitor &V)=0
static bool classof(const Record *R)
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
uint16_t eventType() const
NewBufferRecord(int32_t T)
RecordTypes
Determines the supported types of records that could be seen in XRay traces.
amdgpu Simplify well known AMD library false FunctionCallee Value * Arg
Record & operator=(const Record &)=delete
FunctionRecord(RecordTypes K, int32_t F, uint32_t D)
BufferExtents(uint64_t S)
static GCRegistry::Add< StatepointGC > D("statepoint-example", "an example strategy for statepoint")
static bool classof(const Record *R)
static bool classof(const Record *R)
CallArgRecord(uint64_t A)
static GCRegistry::Add< ErlangGC > A("erlang", "erlang-compatible garbage collector")
static bool classof(const Record *R)
Record(const Record &)=delete
Lightweight error class with error context and mandatory checking.
RecordInitializer(DataExtractor &DE, uint64_t &OP, uint16_t V)
StringRef - Represent a constant reference to a string, i.e.
static StringRef kindToString(RecordKind K)
static bool classof(const Record *R)