pub struct MemoryStats {
pub physical_mem: usize,
pub virtual_mem: usize,
}
Expand description
Statistics on the memory used by the current process.
Fields§
§physical_mem: usize
The “physical” memory used by this process, in bytes. This corresponds to the following metric on each platform:
- Linux, Android, MacOS, iOS: Resident Set Size
- Windows: Working Set
virtual_mem: usize
The “virtual” memory used by this process, in bytes. This corresponds to the following metric on each platform:
- Linux, Android, MacOS, iOS: Virtual Size
- Windows: Pagefile Usage
Trait Implementations§
Source§impl Clone for MemoryStats
impl Clone for MemoryStats
Source§fn clone(&self) -> MemoryStats
fn clone(&self) -> MemoryStats
Returns a copy of the value. Read more
1.0.0 · 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 MemoryStats
impl Debug for MemoryStats
Source§impl Hash for MemoryStats
impl Hash for MemoryStats
Source§impl PartialEq for MemoryStats
impl PartialEq for MemoryStats
impl Copy for MemoryStats
impl Eq for MemoryStats
impl StructuralPartialEq for MemoryStats
Auto Trait Implementations§
impl Freeze for MemoryStats
impl RefUnwindSafe for MemoryStats
impl Send for MemoryStats
impl Sync for MemoryStats
impl Unpin for MemoryStats
impl UnwindSafe for MemoryStats
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