pub struct PsiResource {
pub some_avg10: Percent,
pub some_avg60: Percent,
pub some_avg300: Percent,
pub full_avg10: MetricState<Percent>,
pub full_avg60: MetricState<Percent>,
pub full_avg300: MetricState<Percent>,
pub total_stalled: Duration,
}Expand description
The Linux PSI figures for one resource.
some is the share of time at least one task was stalled; full is the
share where every runnable task was stalled. full is absent for the CPU
resource on many kernels, which is why it is a MetricState.
Fields§
§some_avg10: Percent10-second some average.
some_avg60: Percent60-second some average.
some_avg300: Percent300-second some average.
full_avg10: MetricState<Percent>10-second full average.
full_avg60: MetricState<Percent>60-second full average.
full_avg300: MetricState<Percent>300-second full average.
total_stalled: DurationCumulative stall time, useful as a monotonic counter.
Trait Implementations§
Source§impl Clone for PsiResource
impl Clone for PsiResource
Source§fn clone(&self) -> PsiResource
fn clone(&self) -> PsiResource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PsiResource
Source§impl Debug for PsiResource
impl Debug for PsiResource
Source§impl PartialEq for PsiResource
impl PartialEq for PsiResource
impl StructuralPartialEq for PsiResource
Auto Trait Implementations§
impl Freeze for PsiResource
impl RefUnwindSafe for PsiResource
impl Send for PsiResource
impl Sync for PsiResource
impl Unpin for PsiResource
impl UnsafeUnpin for PsiResource
impl UnwindSafe for PsiResource
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