ark::perf::SchedSwitchDecoder
Defined in header “ark/perf/perf_event_decoder.hh”.
This class is capable of decoding arbitrary ‘sched_switch’ counters. It must be initialized with a schema, and then you can pass in the raw_data field from the perf event samples.
Methods
-
SchedSwitchDecoder(const PerfEventSchema & schema)
Constructor. Decodes the format into a set of offsets to further decode the remaining data. -
SchedSwitchCounter decode(const core::ByteBuffer & buffer)
Decodes the raw sample into a counter.