#[repr(align(64))]pub struct SwitchTimingData {
pub total_switches: AtomicU64,
pub total_switch_time_ns: AtomicU64,
pub fastest_switch_ns: AtomicU32,
pub slowest_switch_ns: AtomicU32,
pub measurement_count: AtomicU64,
pub recent_times: [AtomicU32; 64],
pub recent_index: AtomicU32,
}
Expand description
Context switch timing measurements.
Fields§
§total_switches: AtomicU64
Total context switches performed
total_switch_time_ns: AtomicU64
Cumulative switch time in nanoseconds
fastest_switch_ns: AtomicU32
Fastest recorded switch time
slowest_switch_ns: AtomicU32
Slowest recorded switch time
measurement_count: AtomicU64
Number of timing measurements
recent_times: [AtomicU32; 64]
Recent switch times (circular buffer)
recent_index: AtomicU32
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SwitchTimingData
impl RefUnwindSafe for SwitchTimingData
impl Send for SwitchTimingData
impl Sync for SwitchTimingData
impl Unpin for SwitchTimingData
impl UnwindSafe for SwitchTimingData
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