pub struct NodeUsage {
pub resident_bytes: u64,
pub cpu_seconds: f64,
pub container_bytes: Option<u64>,
pub container_limit_bytes: Option<u64>,
}Expand description
A schedr process’s memory and CPU, and its container’s.
Fields§
§resident_bytes: u64Resident memory, in bytes.
cpu_seconds: f64CPU time used (user and system) since it started, in seconds.
container_bytes: Option<u64>Its cgroup’s memory now (memory.current); none outside a cgroup v2.
container_limit_bytes: Option<u64>The smallest memory.max on the way up from its cgroup; none when unlimited.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeUsage
impl<'de> Deserialize<'de> for NodeUsage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for NodeUsage
Auto Trait Implementations§
impl Freeze for NodeUsage
impl RefUnwindSafe for NodeUsage
impl Send for NodeUsage
impl Sync for NodeUsage
impl Unpin for NodeUsage
impl UnsafeUnpin for NodeUsage
impl UnwindSafe for NodeUsage
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