pub struct ChildResourceReading {
pub memory_bytes: u64,
pub memory_kind: ChildMemoryKind,
pub swap_bytes: Option<u64>,
pub cpu_user_ms: u64,
pub cpu_system_ms: u64,
}Expand description
One reading of a module process’s memory and CPU time.
Fields§
§memory_bytes: u64Memory in bytes, measured as memory_kind says. The figures differ
by platform and are not comparable across kinds.
memory_kind: ChildMemoryKind§swap_bytes: Option<u64>Bytes swapped out, where the platform reports it per process (Linux). Absent means not reported, not zero.
cpu_user_ms: u64CPU time spent in user mode since the process started, in milliseconds. Cumulative, not a rate: a percentage needs two readings and the elapsed time between them.
cpu_system_ms: u64CPU time spent in the kernel on the process’s behalf since it started, in milliseconds.
Trait Implementations§
Source§impl Clone for ChildResourceReading
impl Clone for ChildResourceReading
Source§impl Debug for ChildResourceReading
impl Debug for ChildResourceReading
Source§impl<'de> Deserialize<'de> for ChildResourceReading
impl<'de> Deserialize<'de> for ChildResourceReading
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 Eq for ChildResourceReading
Source§impl PartialEq for ChildResourceReading
impl PartialEq for ChildResourceReading
Source§impl Serialize for ChildResourceReading
impl Serialize for ChildResourceReading
impl StructuralPartialEq for ChildResourceReading
Auto Trait Implementations§
impl Freeze for ChildResourceReading
impl RefUnwindSafe for ChildResourceReading
impl Send for ChildResourceReading
impl Sync for ChildResourceReading
impl Unpin for ChildResourceReading
impl UnsafeUnpin for ChildResourceReading
impl UnwindSafe for ChildResourceReading
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