#include "llvm/XRay/FDRTraceWriter.h"
#include <tuple>
namespace llvm {
namespace xray {
namespace {
template <size_t Index> struct IndexedWriter { … };
template <uint8_t Kind, class... Values>
Error writeMetadata(support::endian::Writer &OS, Values &&... Ds) { … }
}
FDRTraceWriter::FDRTraceWriter(raw_ostream &O, const XRayFileHeader &H)
: … { … }
FDRTraceWriter::~FDRTraceWriter() = default;
Error FDRTraceWriter::visit(BufferExtents &R) { … }
Error FDRTraceWriter::visit(WallclockRecord &R) { … }
Error FDRTraceWriter::visit(NewCPUIDRecord &R) { … }
Error FDRTraceWriter::visit(TSCWrapRecord &R) { … }
Error FDRTraceWriter::visit(CustomEventRecord &R) { … }
Error FDRTraceWriter::visit(CustomEventRecordV5 &R) { … }
Error FDRTraceWriter::visit(TypedEventRecord &R) { … }
Error FDRTraceWriter::visit(CallArgRecord &R) { … }
Error FDRTraceWriter::visit(PIDRecord &R) { … }
Error FDRTraceWriter::visit(NewBufferRecord &R) { … }
Error FDRTraceWriter::visit(EndBufferRecord &R) { … }
Error FDRTraceWriter::visit(FunctionRecord &R) { … }
}
}