Skip to main content

Module dump

Module dump 

Source
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ยง

Dump ๐Ÿ”’
DumpMeta ๐Ÿ”’

Constantsยง

RUNTIME_USAGE_PREFIX ๐Ÿ”’

Functionsยง

report ๐Ÿ”’
write_json ๐Ÿ”’
write_resource_usage
Writes a resource usage snapshot into a process-specific JSON file.