12#ifndef LLVM_XRAY_TRACE_H
13#define LLVM_XRAY_TRACE_H
49 using RecordVector = std::vector<XRayRecord>;
52 typedef std::vector<XRayRecord>::const_iterator citerator;
66 bool empty()
const {
return Records.empty(); }
Tagged union holding either a T or a Error.
StringRef - Represent a constant reference to a string, i.e.
A Trace object represents the records that have been loaded from XRay log files generated by instrume...
RecordVector::size_type size_type
const_iterator end() const
RecordVector::const_iterator const_iterator
LLVM_ABI friend Expected< Trace > loadTrace(const DataExtractor &, bool)
This function will attempt to load XRay trace records from the provided DataExtractor.
const XRayFileHeader & getFileHeader() const
Provides access to the loaded XRay trace file header.
RecordVector::value_type value_type
const_iterator begin() const
LLVM_ABI Expected< Trace > loadTrace(const DataExtractor &Extractor, bool Sort=false)
This function will attempt to load XRay trace records from the provided DataExtractor.
LLVM_ABI Expected< Trace > loadTraceFile(StringRef Filename, bool Sort=false)
This function will attempt to load XRay trace records from the provided |Filename|.
This is an optimization pass for GlobalISel generic memory operations.