pub struct MemUsage {
pub current: usize,
pub peak: usize,
}
Expand description
information about the physical RAM usage of a process
Note that the data, while given in bytes for simplicity, isn’t that precise:
- the numbers are truncated when written by the OS
- the proc_info crate own mem usage isn’t 0
Fields§
§current: usize
estimation of the current physical memory used by the application, in bytes.
Comes from proc/
peak: usize
estimation of the peak physical memory used by the application, in bytes.
Comes from proc/
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemUsage
impl RefUnwindSafe for MemUsage
impl Send for MemUsage
impl Sync for MemUsage
impl Unpin for MemUsage
impl UnwindSafe for MemUsage
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