Enum linux_perf_data::PerfFileRecord
source · [−]pub enum PerfFileRecord<'a> {
EventRecord {
attr_index: usize,
record: RawEventRecord<'a>,
},
UserRecord(RawUserRecord<'a>),
}Expand description
A record from a perf.data file’s data stream.
This can be either a record emitted by the kernel for a perf event, or a
synthesized record that was added by a user-space tool like perf.
Variants
EventRecord
Fields
attr_index: usizeAnd index into the array returned by PerfFile::event_attributes.
record: RawEventRecord<'a>The record.
Emitted by the kernel for a perf event.
UserRecord(RawUserRecord<'a>)
Synthesized by a user space tool, for example by perf or by simpleperf.
Auto Trait Implementations
impl<'a> RefUnwindSafe for PerfFileRecord<'a>
impl<'a> Send for PerfFileRecord<'a>
impl<'a> Sync for PerfFileRecord<'a>
impl<'a> Unpin for PerfFileRecord<'a>
impl<'a> UnwindSafe for PerfFileRecord<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more