class Trace
Declaration
class Trace { /* full declaration omitted */ };
Description
A Trace object represents the records that have been loaded from XRay log files generated by instrumented binaries. We encapsulate the logic of reading the traces in factory functions that populate the Trace object appropriately. Trace objects provide an accessor to an XRayFileHeader which says more about details of the file from which the XRay trace was loaded from. Usage: if (auto TraceOrErr = loadTraceFile("xray-log.something.xray")) { auto & T = *TraceOrErr; // T.getFileHeader() will provide information from the trace header. for (const XRayRecord &R : T) { // ... do something with R here. } } else { // Handle the error here. }
Declared at: llvm/include/llvm/XRay/Trace.h:46
Method Overview
- public llvm::xray::Trace::const_iterator begin() const
- public bool empty() const
- public llvm::xray::Trace::const_iterator end() const
- public const llvm::xray::XRayFileHeader & getFileHeader() const
- public llvm::xray::Trace::size_type size() const
Methods
¶llvm::xray::Trace::const_iterator begin() const
llvm::xray::Trace::const_iterator begin() const
Declared at: llvm/include/llvm/XRay/Trace.h:63
¶bool empty() const
bool empty() const
Declared at: llvm/include/llvm/XRay/Trace.h:65
¶llvm::xray::Trace::const_iterator end() const
llvm::xray::Trace::const_iterator end() const
Declared at: llvm/include/llvm/XRay/Trace.h:64
¶const llvm::xray::XRayFileHeader& getFileHeader()
const
const llvm::xray::XRayFileHeader& getFileHeader()
const
Description
Provides access to the loaded XRay trace file header.
Declared at: llvm/include/llvm/XRay/Trace.h:61
¶llvm::xray::Trace::size_type size() const
llvm::xray::Trace::size_type size() const
Declared at: llvm/include/llvm/XRay/Trace.h:66