pub struct CpuThrottling {
pub periods: u64,
pub throttled_periods: u64,
pub throttled_time: u64,
}Expand description
Reports the cpu throttling for a cgroup
Fields§
§periods: u64Number of period intervals (as specified in cpu.cfs_period_us) that have elapsed
throttled_periods: u64Number of period intervals where tasks have been throttled because they exhausted their quota
throttled_time: u64Total time duration for which tasks have been throttled
Trait Implementations§
Source§impl Debug for CpuThrottling
impl Debug for CpuThrottling
Source§impl Default for CpuThrottling
impl Default for CpuThrottling
Source§fn default() -> CpuThrottling
fn default() -> CpuThrottling
Returns the “default value” for a type. Read more
Source§impl PartialEq for CpuThrottling
impl PartialEq for CpuThrottling
Source§fn eq(&self, other: &CpuThrottling) -> bool
fn eq(&self, other: &CpuThrottling) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CpuThrottling
impl Serialize for CpuThrottling
impl Eq for CpuThrottling
impl StructuralPartialEq for CpuThrottling
Auto Trait Implementations§
impl Freeze for CpuThrottling
impl RefUnwindSafe for CpuThrottling
impl Send for CpuThrottling
impl Sync for CpuThrottling
impl Unpin for CpuThrottling
impl UnsafeUnpin for CpuThrottling
impl UnwindSafe for CpuThrottling
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