Skip to main content

get_memory_usage_string

Function get_memory_usage_string 

Source
pub fn get_memory_usage_string() -> Option<String>
Expand description

Application memory usage with unit

if let Some(usage) = app_memory_usage_fetcher::get_memory_usage_string() {
    println!("Memory usage: {usage}");
}