LLVM  5.0.0
Classes | Enumerations | Functions
llvm::xray Namespace Reference

Classes

class  Graph
 A Graph object represents a Directed Graph and is used in XRay to compute and store function call graphs and associated statistical information. More...
 
struct  SledEntry
 Represents an XRay instrumentation sled entry from an object file. More...
 
struct  YAMLXRaySledEntry
 
class  InstrumentationMap
 The InstrumentationMap represents the computed function id's and indicated function addresses from an object file (or a YAML file). More...
 
class  Trace
 A Trace object represents the records that have been loaded from XRay log files generated by instrumented binaries. More...
 
struct  XRayFileHeader
 XRay traces all have a header providing some top-matter information useful to help tools determine how to interpret the information available in the trace. More...
 
struct  XRayRecord
 
struct  YAMLXRayFileHeader
 
struct  YAMLXRayRecord
 
struct  YAMLXRayTrace
 

Enumerations

enum  RecordTypes { RecordTypes::ENTER, RecordTypes::EXIT }
 Determines the supported types of records that could be seen in XRay traces. More...
 

Functions

Expected< InstrumentationMap > loadInstrumentationMap (StringRef Filename)
 Loads the instrumentation map from |Filename|. More...
 
Expected< Trace > loadTraceFile (StringRef Filename, bool Sort=false)
 This function will attempt to load XRay trace records from the provided |Filename|. More...
 

Enumeration Type Documentation

Determines the supported types of records that could be seen in XRay traces.

This may or may not correspond to actual record types in the raw trace (as the loader implementation may synthesize this information in the process of of loading).

Enumerator
ENTER 
EXIT 

Definition at line 56 of file XRayRecord.h.

Function Documentation

Expected< InstrumentationMap > llvm::xray::loadInstrumentationMap ( StringRef  Filename)

Loads the instrumentation map from |Filename|.

This auto-deduces the type of the instrumentation map.

Definition at line 165 of file InstrumentationMap.cpp.

References llvm::consumeError(), llvm::object::ObjectFile::createObjectFile(), E, llvm::sys::fs::file_size(), loadELF64(), loadYAML(), and llvm::sys::fs::openFileForRead().

Expected< Trace > llvm::xray::loadTraceFile ( StringRef  Filename,
bool  Sort = false 
)