Enum Event

Source
pub enum Event {
    MMap {
        pid: u32,
        tid: u32,
        addr: u64,
        len: u64,
        pgoff: u64,
        filename: String,
        sample_id: SampleId,
    },
    MMap2 {
Show 13 fields pid: u32, tid: u32, addr: u64, len: u64, pgoff: u64, maj: u32, min: u32, ino: u64, ino_generation: u64, prot: u32, flags: u32, filename: String, sample_id: SampleId,
}, Sample { identifier: Option<u64>, ip: Option<u64>, pid: Option<u32>, tid: Option<u32>, time: Option<u64>, addr: Option<u64>, id: Option<u64>, stream_id: Option<u64>, cpu: Option<u32>, res: Option<u32>, period: Option<u64>, call_chain: Vec<u64>, }, Exit { pid: u32, ppid: u32, tid: u32, ptid: u32, time: u64, sample_id: SampleId, }, Comm { pid: u32, tid: u32, comm: String, sample_id: SampleId, }, FinishedRound, Unsupported, }

Variants§

§

MMap

Fields

§pid: u32
§tid: u32
§addr: u64
§len: u64
§pgoff: u64
§filename: String
§sample_id: SampleId
§

MMap2

Fields

§pid: u32
§tid: u32
§addr: u64
§len: u64
§pgoff: u64
§maj: u32
§min: u32
§ino: u64
§ino_generation: u64
§prot: u32
§flags: u32
§filename: String
§sample_id: SampleId
§

Sample

Fields

§identifier: Option<u64>
§time: Option<u64>
§addr: Option<u64>
§stream_id: Option<u64>
§period: Option<u64>
§call_chain: Vec<u64>
§

Exit

Fields

§pid: u32
§ppid: u32
§tid: u32
§ptid: u32
§time: u64
§sample_id: SampleId
§

Comm

Fields

§pid: u32
§tid: u32
§comm: String
§sample_id: SampleId
§

FinishedRound

§

Unsupported

Trait Implementations§

Source§

impl Debug for Event

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.