Skip to main content

usage

Function usage 

Source
pub fn usage() -> Result<Usage>
Expand description

Returns resource usage for the current process.

Unix platforms obtain a fresh RUSAGE_SELF snapshot from getrusage(). The measurement includes resources consumed by the process at call time.