Function memory_stats::memory_stats

source ·
pub fn memory_stats() -> Option<MemoryStats>
Expand description

Returns a snapshot of the the memory used by the current process.

§Errors

If the current memory usage cannot be queried or memory_stats is run on a unsupported platform, None is returned.