pub fn memory() -> Result<Bytes>Expand description
This process’s resident memory (RSS): one read, no allocation.
println!("rss {} peak {}", sys_lib::process::memory()?, sys_lib::process::peak_memory()?);§Errors
NotFound when /proc/self is hidden; Os when the call fails.