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());
}