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
Emitted by the kernel for a perf event.
Fields
§
attr_index: usize
And index into the array returned by PerfFile::event_attributes
.
§
record: RawEventRecord<'a>
The record.
UserRecord(RawUserRecord<'a>)
Synthesized by a user space tool, for example by perf
or by simpleperf
.
Auto Trait Implementations§
impl<'a> Freeze for PerfFileRecord<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more