pub struct KernelMetricSnapshot {
pub context_switches: usize,
pub blocked_sync_ops: usize,
pub wakeups: usize,
}Expand description
内核计数器快照。
Fields§
§context_switches: usize总上下文切换次数。
blocked_sync_ops: usize因同步原语阻塞的次数。
wakeups: usize同步原语唤醒次数。
Implementations§
Trait Implementations§
Source§impl Clone for KernelMetricSnapshot
impl Clone for KernelMetricSnapshot
Source§fn clone(&self) -> KernelMetricSnapshot
fn clone(&self) -> KernelMetricSnapshot
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 moreimpl Copy for KernelMetricSnapshot
Auto Trait Implementations§
impl Freeze for KernelMetricSnapshot
impl RefUnwindSafe for KernelMetricSnapshot
impl Send for KernelMetricSnapshot
impl Sync for KernelMetricSnapshot
impl Unpin for KernelMetricSnapshot
impl UnsafeUnpin for KernelMetricSnapshot
impl UnwindSafe for KernelMetricSnapshot
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