Lines Matching defs:Trace
1 //===- xray-converter.cpp: XRay Trace Conversion --------------------------===//
24 #include "llvm/XRay/Trace.h"
32 static cl::SubCommand Convert("convert", "Trace Format Conversion");
78 void TraceConverter::exportAsYAML(const Trace &Records, raw_ostream &OS) {
79 YAMLXRayTrace Trace;
81 Trace.Header = {FH.Version, FH.Type, FH.ConstantTSC, FH.NonstopTSC,
83 Trace.Records.reserve(Records.size());
85 Trace.Records.push_back({R.RecordType, R.CPU, R.Type, R.FuncId,
92 Out << Trace;
95 void TraceConverter::exportAsRAWv1(const Trace &Records, raw_ostream &OS) {
265 void TraceConverter::exportAsChromeTraceEventFormat(const Trace &Records,
290 // TODO: Make feature request to Chrome Trace viewer to accept ticks and a
298 // TODO: Support typed and custom event rendering on Chrome Trace Viewer.
333 OS << "\n ],\n"; // Close the Trace Events array.