pub struct ProcessSample {
pub cpu: Option<f32>,
pub memory: Option<u64>,
pub gpu: Option<f32>,
}Expand description
The process’ resource use (ProcessSampler).
Fields§
§cpu: Option<f32>CPU time over wall time since the previous sample, in percent of one
core (as top and Activity Monitor show it: 150 is one and a half
cores busy).
memory: Option<u64>Memory the process owns, in bytes: the physical footprint on Apple platforms (Activity Monitor’s Memory column), the resident set elsewhere.
gpu: Option<f32>GPU time over wall time, in percent, where the platform tells it per process (macOS).
Trait Implementations§
Source§impl Clone for ProcessSample
impl Clone for ProcessSample
impl Copy for ProcessSample
Source§impl Debug for ProcessSample
impl Debug for ProcessSample
Source§impl Default for ProcessSample
impl Default for ProcessSample
Source§impl PartialEq for ProcessSample
impl PartialEq 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