pub struct ProcessSample {
pub pid: u32,
pub name: String,
pub kind: ProcessKind,
pub mem_bytes: Option<u64>,
pub util_pct: Option<f32>,
pub cpu_pct: Option<f32>,
pub container: Option<String>,
}Expand description
Per-process attribution (nvtop’s refresh_running_processes split).
Fields§
§pid: u32§name: String§kind: ProcessKind§mem_bytes: Option<u64>§util_pct: Option<f32>§cpu_pct: Option<f32>Process CPU usage as % of one core (100.0 = one full core); None when unknown.
serde(default) so frames recorded before this field existed still deserialize.
container: Option<String>Container identity if the process runs in one (e.g. docker:1a2b3c4d5e6f);
None for host processes or when unknown. serde(default) for old recordings.
Trait Implementations§
Source§impl Clone for ProcessSample
impl Clone for ProcessSample
Source§fn clone(&self) -> ProcessSample
fn clone(&self) -> ProcessSample
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 moreSource§impl Debug for ProcessSample
impl Debug for ProcessSample
Source§impl<'de> Deserialize<'de> for ProcessSample
impl<'de> Deserialize<'de> for ProcessSample
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
Source§impl PartialEq for ProcessSample
impl PartialEq for ProcessSample
Source§impl Serialize for ProcessSample
impl Serialize for ProcessSample
impl StructuralPartialEq for ProcessSample
Auto Trait Implementations§
impl Freeze for ProcessSample
impl RefUnwindSafe for ProcessSample
impl Send for ProcessSample
impl Sync for ProcessSample
impl Unpin for ProcessSample
impl UnsafeUnpin for ProcessSample
impl UnwindSafe for ProcessSample
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