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: usize

And 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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.