|
LLVM
7.0.0
|
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... | |
| class | InstrumentationMap |
| The InstrumentationMap represents the computed function id's and indicated function addresses from an object file (or a YAML file). More... | |
| struct | SledEntry |
| Represents an XRay instrumentation sled entry from an object 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 | YAMLXRaySledEntry |
| struct | YAMLXRayTrace |
Enumerations | |
| enum | RecordTypes { RecordTypes::ENTER, RecordTypes::EXIT, RecordTypes::TAIL_EXIT, RecordTypes::ENTER_ARG } |
| 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... | |
|
strong |
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 | |
| TAIL_EXIT | |
| ENTER_ARG | |
Definition at line 57 of file XRayRecord.h.
| 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 166 of file InstrumentationMap.cpp.
References llvm::consumeError(), llvm::object::ObjectFile::createObjectFile(), E, llvm::sys::fs::file_size(), loadELF64(), loadYAML(), and llvm::sys::fs::openFileForRead().
This function will attempt to load XRay trace records from the provided |Filename|.
Definition at line 680 of file Trace.cpp.
References llvm::sys::fs::mapped_file_region::data(), E, llvm::sys::fs::file_size(), Magic, llvm::make_error_code(), llvm::sys::fs::openFileForRead(), llvm::sys::fs::mapped_file_region::size(), T, and llvm::xray::XRayRecord::TSC.
1.8.13