pub struct ContextSwitchStats {
pub total_switches: u64,
pub total_switch_time_ns: u64,
pub average_switch_time_ns: u32,
pub fastest_switch_ns: u32,
pub slowest_switch_ns: u32,
pub measurement_count: u64,
pub meets_target: bool,
pub optimization_enabled: bool,
}
Expand description
Context switch performance statistics.
Fields§
§total_switches: u64
§total_switch_time_ns: u64
§average_switch_time_ns: u32
§fastest_switch_ns: u32
§slowest_switch_ns: u32
§measurement_count: u64
§meets_target: bool
§optimization_enabled: bool
Trait Implementations§
Source§impl Clone for ContextSwitchStats
impl Clone for ContextSwitchStats
Source§fn clone(&self) -> ContextSwitchStats
fn clone(&self) -> ContextSwitchStats
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 moreAuto Trait Implementations§
impl Freeze for ContextSwitchStats
impl RefUnwindSafe for ContextSwitchStats
impl Send for ContextSwitchStats
impl Sync for ContextSwitchStats
impl Unpin for ContextSwitchStats
impl UnwindSafe for ContextSwitchStats
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