pub struct ResourceUsage {
pub utime: Duration,
pub stime: Duration,
pub maxrss: u64,
}Expand description
Resources used by a process
Fields§
§utime: DurationUser CPU time used
Time spent in user-mode
stime: DurationSystem CPU time used
Time spent in kernel-mode
maxrss: u64Maximum resident set size
Expressed in bytes when available.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResourceUsage
impl RefUnwindSafe for ResourceUsage
impl Send for ResourceUsage
impl Sync for ResourceUsage
impl Unpin for ResourceUsage
impl UnwindSafe for ResourceUsage
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