12#ifndef LLVM_XRAY_TRACE_H
13#define LLVM_XRAY_TRACE_H
48 using RecordVector = std::vector<XRayRecord>;
51 typedef std::vector<XRayRecord>::const_iterator citerator;
65 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...
friend Expected< Trace > loadTrace(const DataExtractor &, bool)
This function will attempt to load XRay trace records from the provided DataExtractor.
RecordVector::size_type size_type
const_iterator end() const
RecordVector::const_iterator const_iterator
const XRayFileHeader & getFileHeader() const
Provides access to the loaded XRay trace file header.
RecordVector::value_type value_type
const_iterator begin() const
Expected< Trace > loadTrace(const DataExtractor &Extractor, bool Sort=false)
This function will attempt to load XRay trace records from the provided DataExtractor.
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.