pub struct ContextSwitchProfile {
pub total_switches: u64,
pub avg_switch_latency: u64,
pub max_switch_latency: u64,
pub min_switch_latency: u64,
pub switches_by_reason: BTreeMap<ContextSwitchReason, u64>,
pub switches_per_second: f64,
}
Expand description
Context switching profiling data.
Fields§
§total_switches: u64
Total context switches observed
avg_switch_latency: u64
Average switch latency (nanoseconds)
max_switch_latency: u64
Maximum switch latency (nanoseconds)
min_switch_latency: u64
Minimum switch latency (nanoseconds)
switches_by_reason: BTreeMap<ContextSwitchReason, u64>
Switches by reason
switches_per_second: f64
Switches per second
Trait Implementations§
Source§impl Clone for ContextSwitchProfile
impl Clone for ContextSwitchProfile
Source§fn clone(&self) -> ContextSwitchProfile
fn clone(&self) -> ContextSwitchProfile
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 ContextSwitchProfile
impl RefUnwindSafe for ContextSwitchProfile
impl Send for ContextSwitchProfile
impl Sync for ContextSwitchProfile
impl Unpin for ContextSwitchProfile
impl UnwindSafe for ContextSwitchProfile
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