Struct perf_event_data::ReadGroup
source · pub struct ReadGroup<'a> { /* private fields */ }Expand description
The values read from a group of counters.
Implementations§
source§impl<'a> ReadGroup<'a>
impl<'a> ReadGroup<'a>
sourcepub fn into_owned(self) -> ReadGroup<'static>
pub fn into_owned(self) -> ReadGroup<'static>
Convert all the borrowed data in this ReadGroup into owned data.
sourcepub fn time_enabled(&self) -> Option<u64>
pub fn time_enabled(&self) -> Option<u64>
The duration for which this event was enabled, in nanoseconds.
sourcepub fn time_running(&self) -> Option<u64>
pub fn time_running(&self) -> Option<u64>
The duration for which this event was running, in nanoseconds.
This will be less than time_enabled if the kernel ended up having to
multiplex multiple counters on the CPU.
sourcepub fn get(&self, index: usize) -> Option<GroupEntry>
pub fn get(&self, index: usize) -> Option<GroupEntry>
Get a group entry by its index.
sourcepub fn get_by_id(&self, id: u64) -> Option<GroupEntry>
pub fn get_by_id(&self, id: u64) -> Option<GroupEntry>
Get a group entry by its counter id.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ReadGroup<'a>
impl<'a> Send for ReadGroup<'a>
impl<'a> Sync for ReadGroup<'a>
impl<'a> Unpin for ReadGroup<'a>
impl<'a> UnwindSafe for ReadGroup<'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