LLVM
8.0.1
|
The FDRTraceWriter allows us to hand-craft an XRay Flight Data Recorder (FDR) mode log file. More...
#include "llvm/XRay/FDRTraceWriter.h"
Public Member Functions | |
FDRTraceWriter (raw_ostream &O, const XRayFileHeader &H) | |
~FDRTraceWriter () | |
Error | visit (BufferExtents &) override |
Error | visit (WallclockRecord &) override |
Error | visit (NewCPUIDRecord &) override |
Error | visit (TSCWrapRecord &) override |
Error | visit (CustomEventRecord &) override |
Error | visit (CallArgRecord &) override |
Error | visit (PIDRecord &) override |
Error | visit (NewBufferRecord &) override |
Error | visit (EndBufferRecord &) override |
Error | visit (FunctionRecord &) override |
Error | visit (CustomEventRecordV5 &) override |
Error | visit (TypedEventRecord &) override |
Public Member Functions inherited from llvm::xray::RecordVisitor | |
virtual | ~RecordVisitor ()=default |
The FDRTraceWriter allows us to hand-craft an XRay Flight Data Recorder (FDR) mode log file.
This is used primarily for testing, generating sequences of FDR records that can be read/processed. It can also be used to generate various kinds of execution traces without using the XRay runtime. Note that this writer does not do any validation, but uses the types of records defined in the FDRRecords.h file.
Definition at line 30 of file FDRTraceWriter.h.
|
explicit |
Definition at line 62 of file FDRTraceWriter.cpp.
References llvm::xray::XRayFileHeader::ConstantTSC, llvm::xray::XRayFileHeader::CycleFrequency, llvm::xray::XRayFileHeader::FreeFormData, llvm::xray::XRayFileHeader::NonstopTSC, llvm::xray::XRayFileHeader::Type, and llvm::xray::XRayFileHeader::Version.
llvm::xray::FDRTraceWriter::~FDRTraceWriter | ( | ) |
Definition at line 80 of file FDRTraceWriter.cpp.
|
overridevirtual |
Implements llvm::xray::RecordVisitor.
Definition at line 82 of file FDRTraceWriter.cpp.
References llvm::xray::BufferExtents::size().
|
overridevirtual |
Implements llvm::xray::RecordVisitor.
Definition at line 86 of file FDRTraceWriter.cpp.
References llvm::xray::WallclockRecord::nanos(), and llvm::xray::WallclockRecord::seconds().
|
overridevirtual |
Implements llvm::xray::RecordVisitor.
Definition at line 90 of file FDRTraceWriter.cpp.
References llvm::xray::NewCPUIDRecord::cpuid(), and llvm::xray::NewCPUIDRecord::tsc().
|
overridevirtual |
Implements llvm::xray::RecordVisitor.
Definition at line 94 of file FDRTraceWriter.cpp.
References llvm::xray::TSCWrapRecord::tsc().
|
overridevirtual |
Implements llvm::xray::RecordVisitor.
Definition at line 98 of file FDRTraceWriter.cpp.
References llvm::xray::CustomEventRecord::cpu(), D, llvm::xray::CustomEventRecord::data(), E, llvm::xray::CustomEventRecord::size(), llvm::Error::success(), and llvm::xray::CustomEventRecord::tsc().
|
overridevirtual |
Implements llvm::xray::RecordVisitor.
Definition at line 125 of file FDRTraceWriter.cpp.
References llvm::xray::CallArgRecord::arg().
Implements llvm::xray::RecordVisitor.
Definition at line 129 of file FDRTraceWriter.cpp.
References llvm::xray::PIDRecord::pid().
|
overridevirtual |
Implements llvm::xray::RecordVisitor.
Definition at line 133 of file FDRTraceWriter.cpp.
References llvm::xray::NewBufferRecord::tid().
|
overridevirtual |
Implements llvm::xray::RecordVisitor.
Definition at line 137 of file FDRTraceWriter.cpp.
|
overridevirtual |
Implements llvm::xray::RecordVisitor.
Definition at line 141 of file FDRTraceWriter.cpp.
References llvm::xray::FunctionRecord::delta(), llvm::xray::FunctionRecord::functionId(), llvm::xray::FunctionRecord::recordType(), and llvm::Error::success().
|
overridevirtual |
Implements llvm::xray::RecordVisitor.
Definition at line 107 of file FDRTraceWriter.cpp.
References D, llvm::xray::CustomEventRecordV5::data(), llvm::xray::CustomEventRecordV5::delta(), E, llvm::xray::CustomEventRecordV5::size(), and llvm::Error::success().
|
overridevirtual |
Implements llvm::xray::RecordVisitor.
Definition at line 116 of file FDRTraceWriter.cpp.
References D, llvm::xray::TypedEventRecord::data(), llvm::xray::TypedEventRecord::delta(), E, llvm::xray::TypedEventRecord::eventType(), llvm::xray::TypedEventRecord::size(), and llvm::Error::success().