pub struct Config {
pub pid: Option<i32>,
pub interval_secs: u64,
pub format: OutputFormat,
pub output_file: Option<String>,
pub quiet: bool,
pub metadata: JobMetadata,
pub command: Vec<String>,
}Expand description
Resolved configuration after merging CLI args > TOML file > defaults.
Fields§
§pid: Option<i32>Root PID for per-process CPU attribution. None = system-wide only. Set automatically from the spawned child PID in shell-wrapper mode.
interval_secs: u64Polling interval in seconds.
format: OutputFormatOutput format (JSON or CSV).
output_file: Option<String>Write metric output to this file path instead of stdout. None = write to stdout.
quiet: boolSuppress all metric output (no stdout, no file).
metadata: JobMetadataSection 9.3 job metadata (used for Sentinel API registration).
command: Vec<String>Shell-wrapper command. Empty = standalone mode.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more