Go to the documentation of this file.
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(); }
80 #endif // LLVM_XRAY_TRACE_H
This is an optimization pass for GlobalISel generic memory operations.
Expected< Trace > loadTraceFile(StringRef Filename, bool Sort=false)
This function will attempt to load XRay trace records from the provided |Filename|.
Tagged union holding either a T or a Error.
RecordVector::const_iterator const_iterator
const_iterator end() const
Expected< Trace > loadTrace(const DataExtractor &Extractor, bool Sort=false)
This function will attempt to load XRay trace records from the provided DataExtractor.
StringRef - Represent a constant reference to a string, i.e.
RecordVector::value_type value_type
RecordVector::size_type size_type
friend Expected< Trace > loadTrace(const DataExtractor &, bool)
This function will attempt to load XRay trace records from the provided DataExtractor.
A Trace object represents the records that have been loaded from XRay log files generated by instrume...
const_iterator begin() const
const XRayFileHeader & getFileHeader() const
Provides access to the loaded XRay trace file header.