pub struct PerfStatResult {
pub counters: HashMap<String, u64>,
pub wall_time_secs: f64,
}Expand description
Parsed perf stat output.
Fields§
§counters: HashMap<String, u64>§wall_time_secs: f64Implementations§
Source§impl PerfStatResult
impl PerfStatResult
Sourcepub fn cache_miss_rate(&self) -> f64
pub fn cache_miss_rate(&self) -> f64
Compute cache miss rate.
Sourcepub fn branch_miss_rate(&self) -> f64
pub fn branch_miss_rate(&self) -> f64
Compute branch misprediction rate.
Sourcepub fn simd_utilization(&self) -> Option<f64>
pub fn simd_utilization(&self) -> Option<f64>
Compute SIMD utilization: vector_ops / (vector_ops + scalar_ops) * 100.
Trait Implementations§
Source§impl Clone for PerfStatResult
impl Clone for PerfStatResult
Source§fn clone(&self) -> PerfStatResult
fn clone(&self) -> PerfStatResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PerfStatResult
impl Debug for PerfStatResult
Source§impl Default for PerfStatResult
impl Default for PerfStatResult
Source§fn default() -> PerfStatResult
fn default() -> PerfStatResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PerfStatResult
impl RefUnwindSafe for PerfStatResult
impl Send for PerfStatResult
impl Sync for PerfStatResult
impl Unpin for PerfStatResult
impl UnsafeUnpin for PerfStatResult
impl UnwindSafe for PerfStatResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more