pub struct Stats { /* private fields */ }Expand description
Holding all statistics related to the run queue
Contains:
- Mean level of processes in the run queues
- SMP queue distributions
Implementations§
Trait Implementations§
Source§impl SmpStats for Stats
impl SmpStats for Stats
Source§fn store_load(&self, affinity: usize, load: usize)
fn store_load(&self, affinity: usize, load: usize)
Stores the load of the given queue.
Source§fn get_sorted_load(&self) -> ArrayVec<(usize, usize), MAX_CORE>
fn get_sorted_load(&self) -> ArrayVec<(usize, usize), MAX_CORE>
returns tuple of queue id and load ordered from highest load to lowest.
Source§fn update_mean(&self)
fn update_mean(&self)
update the smp mean.
impl Send for Stats
impl Sync for Stats
Auto Trait Implementations§
impl !Freeze for Stats
impl RefUnwindSafe for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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