pub struct Stat {
pub count: u64,
pub id: Option<u64>,
pub time_enabled: Option<u64>,
pub time_running: Option<u64>,
pub lost_records: Option<u64>,
pub siblings: Vec<SiblingStat>,
}
Expand description
Event statistics.
This type can be formatted with the {:-?}
formatter for compact
debugging displays.
Fields§
§count: u64
Event count.
id: Option<u64>
Event ID.
time_enabled: Option<u64>
The enabled time of the counter.
This can be used to calculate estimated totals if the PMU is overcommitted and multiplexing is happening,
the raw count can be scaled by raw / (time_running / time_enabled)
to estimate the totals.
time_running: Option<u64>
The running time of the counter.
Usually used together with time_enabled
.
lost_records: Option<u64>
The number of lost records.
If the sampler ring-buffer has no more space to hold the new records or the ring-buffer output is paused, the records are considered lost.
Since linux-6.0
: https://github.com/torvalds/linux/commit/119a784c81270eb88e573174ed2209225d646656
siblings: Vec<SiblingStat>
Sibling event statistics.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stat
impl RefUnwindSafe for Stat
impl Send for Stat
impl Sync for Stat
impl Unpin for Stat
impl UnwindSafe for Stat
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