Struct memory_stats::MemoryStats
source · 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
source§fn eq(&self, other: &MemoryStats) -> bool
fn eq(&self, other: &MemoryStats) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)