13 #ifndef LLVM_XRAY_TRACE_H
14 #define LLVM_XRAY_TRACE_H
49 std::vector<XRayRecord> Records;
51 typedef std::vector<XRayRecord>::const_iterator citerator;
59 citerator
begin()
const {
return Records.begin(); }
60 citerator
end()
const {
return Records.end(); }
61 size_t size()
const {
return Records.size(); }
71 #endif // LLVM_XRAY_TRACE_H
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.
friend Expected< Trace > loadTraceFile(StringRef, bool)
This function will attempt to load XRay trace records from the provided |Filename|.
A Trace object represents the records that have been loaded from XRay log files generated by instrume...
const XRayFileHeader & getFileHeader() const
Provides access to the loaded XRay trace file header.
StringRef - Represent a constant reference to a string, i.e.