pub struct OutputConfig {
pub output_file: Option<PathBuf>,
pub format: OutputFormat,
pub store_in_memory: bool,
pub quiet: bool,
pub update_in_place: bool,
pub write_metadata: bool,
pub write_env: bool,
}Expand description
Configuration for output behavior
Fields§
§output_file: Option<PathBuf>File to write output to (None for no file output)
format: OutputFormatOutput format
store_in_memory: boolWhether to store samples in memory
quiet: boolWhether to suppress stdout output
update_in_place: boolWhether to update output in place (vs new lines)
write_metadata: boolWhether to write metadata as first line when writing to file
write_env: boolWhether to write an env (host/NUMA/affinity) record before metadata
when writing to file. Captured once at the start of monitoring.
Implementations§
Source§impl OutputConfig
impl OutputConfig
Sourcepub fn builder() -> OutputConfigBuilder
pub fn builder() -> OutputConfigBuilder
Create a new output configuration builder
Trait Implementations§
Source§impl Clone for OutputConfig
impl Clone for OutputConfig
Source§fn clone(&self) -> OutputConfig
fn clone(&self) -> OutputConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutputConfig
impl Debug for OutputConfig
Auto Trait Implementations§
impl Freeze for OutputConfig
impl RefUnwindSafe for OutputConfig
impl Send for OutputConfig
impl Sync for OutputConfig
impl Unpin for OutputConfig
impl UnsafeUnpin for OutputConfig
impl UnwindSafe for OutputConfig
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