1 //===- xray-converter.h - XRay Trace Conversion ---------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Defines the TraceConverter class for turning binary traces into
11 // human-readable text and vice versa.
13 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_TOOLS_LLVM_XRAY_XRAY_CONVERTER_H
15 #define LLVM_TOOLS_LLVM_XRAY_XRAY_CONVERTER_H
17 #include "func-id-helper.h"
18 #include "llvm/XRay/XRayRecord.h"
19 #include "llvm/XRay/Trace.h"
24 class TraceConverter {
25 FuncIdConversionHelper &FuncIdHelper;
29 TraceConverter(FuncIdConversionHelper &FuncIdHelper, bool Symbolize = false)
30 : FuncIdHelper(FuncIdHelper), Symbolize(Symbolize) {}
32 void exportAsYAML(const Trace &Records, raw_ostream &OS);
33 void exportAsRAWv1(const Trace &Records, raw_ostream &OS);
39 #endif // LLVM_TOOLS_LLVM_XRAY_XRAY_CONVERTER_H