pub fn usage() -> Result<Usage>
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.
RUSAGE_SELF
getrusage()