pub struct ReadValue { /* private fields */ }
Expand description
Data read from a counter.
Implementations§
Source§impl ReadValue
impl ReadValue
Sourcepub fn from_group_and_entry(group: &ReadGroup<'_>, entry: &GroupEntry) -> Self
pub fn from_group_and_entry(group: &ReadGroup<'_>, entry: &GroupEntry) -> Self
Create a ReadValue
from a ReadGroup
and its entry within that group.
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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadValue
impl RefUnwindSafe for ReadValue
impl Send for ReadValue
impl Sync for ReadValue
impl Unpin for ReadValue
impl UnwindSafe for ReadValue
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