pub fn thread_usage() -> Result<Usage>Expand description
Returns resource usage for the current thread when the platform supports it.
Linux, FreeBSD, and OpenBSD report thread-specific usage. Other Unix
platforms fall back to process-wide usage. Platforms without getrusage()
return the zero-field Usage stub.