pub struct ProcessUsage {
pub pid: u32,
pub name: String,
pub exe: Option<String>,
pub usage: ResourceUsage,
}Expand description
Usage of a single process.
Fields§
§pid: u32Process ID.
name: StringExecutable name, for example cargo.exe.
exe: Option<String>Full path of the executable, when the sampler could read it.
usage: ResourceUsageResources the process uses.
Trait Implementations§
Source§impl Clone for ProcessUsage
impl Clone for ProcessUsage
Source§impl Debug for ProcessUsage
impl Debug for ProcessUsage
Source§impl<'de> Deserialize<'de> for ProcessUsage
impl<'de> Deserialize<'de> for ProcessUsage
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 ProcessUsage
impl PartialEq for ProcessUsage
Source§impl Serialize for ProcessUsage
impl Serialize for ProcessUsage
impl StructuralPartialEq for ProcessUsage
Auto Trait Implementations§
impl Forget for ProcessUsage
impl Freeze for ProcessUsage
impl RefUnwindSafe for ProcessUsage
impl Send for ProcessUsage
impl Sync for ProcessUsage
impl Unpin for ProcessUsage
impl UnsafeUnpin for ProcessUsage
impl UnwindSafe for ProcessUsage
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