Skip to main content

write_resource_usage

Function write_resource_usage 

Source
pub fn write_resource_usage(dir: &Path, usage: &Usage)
Expand description

Writes a resource usage snapshot into a process-specific JSON file.

The output filename includes the current process identifier. Serialization and file-system failures are reported through logging instead of being returned.