Expand description
Exit-time dumps of runtime metrics and resource usage.
Each file is a small JSON envelope: a meta block (pid, timestamp,
version, scope) and a payload string holding the Debug output of the
source struct verbatim.
Re-exportsยง
use std::fs;๐use std::path::Path;๐use std::process;๐use serde::Serialize;๐use serde::Serialize;๐use crate::Result;๐use crate::debug_info;๐use crate::error;๐use crate::error;๐use crate::utils::sys::Usage;๐use crate::utils::time::now_millis;๐use crate::version;๐use crate::version;๐
Structsยง
Constantsยง
- RUNTIME_
USAGE_ ๐PREFIX
Functionsยง
- report ๐
- write_
json ๐ - write_
resource_ usage - Writes a resource usage snapshot into a process-specific JSON file.