13 #ifndef LLVM_XRAY_YAML_XRAY_RECORD_H 14 #define LLVM_XRAY_YAML_XRAY_RECORD_H 16 #include <type_traits> 55 template <>
struct ScalarEnumerationTraits<xray::
RecordTypes> {
66 IO.mapRequired(
"version", Header.
Version);
67 IO.mapRequired(
"type", Header.
Type);
69 IO.mapRequired(
"nonstop-tsc", Header.
NonstopTSC);
78 IO.mapRequired(
"func-id", Record.
FuncId);
79 IO.mapOptional(
"function", Record.
Function);
80 IO.mapOptional(
"args", Record.
CallArgs);
81 IO.mapRequired(
"cpu", Record.
CPU);
82 IO.mapRequired(
"thread", Record.
TId);
83 IO.mapOptional(
"process", Record.
PId, 0U);
84 IO.mapRequired(
"kind", Record.
Type);
85 IO.mapRequired(
"tsc", Record.
TSC);
88 static constexpr
bool flow =
true;
95 IO.mapRequired(
"header", Trace.
Header);
96 IO.mapRequired(
"records", Trace.
Records);
105 #endif // LLVM_XRAY_YAML_XRAY_RECORD_H
Compute iterated dominance frontiers using a linear time algorithm.
static void mapping(IO &IO, xray::YAMLXRayRecord &Record)
static void enumeration(IO &IO, xray::RecordTypes &Type)
std::vector< uint64_t > CallArgs
static void mapping(IO &IO, xray::YAMLXRayTrace &Trace)
The instances of the Type class are immutable: once they are created, they are never changed...
RecordTypes
Determines the supported types of records that could be seen in XRay traces.
std::vector< YAMLXRayRecord > Records
YAMLXRayFileHeader Header