Skip to main content

get_memory_usage_bytes

Function get_memory_usage_bytes 

Source
pub fn get_memory_usage_bytes() -> Option<NonZeroU64>
Expand description

Application memory usage in bytes

Returns None if the operating system is not supported.

 if let Some(bytes) = app_memory_usage_fetcher::get_memory_usage_bytes() {
     println!("Memory usage: {} bytes", bytes.get());
 }