pub struct ProfilerConfig {
pub stdout_file: Option<String>,
pub token_pattern: String,
pub use_root: bool,
pub output_file: Option<String>,
pub output_format: OutputFormat,
pub init_timeout: Duration,
pub rapl_backend: RaplBackend,
}Expand description
Unknown keys are rejected: a misspelled one would otherwise be dropped
without a trace, which is easy to miss on a -D override.
Fields§
§stdout_file: Option<String>Optional file to redirect the profiled program stdout.
token_pattern: StringRegex used to detect phase tokens in program output.
use_root: boolExecutes the profiled command with root privileges if true and Joule Profiler is launched as root.
output_file: Option<String>Output file for CSV/JSON. (else data<TIMESTAMP>.csv/json)
output_format: OutputFormatThe output format to use. (e.g., terminal, json, csv)
init_timeout: DurationDuration before aborting sources initialization. (default: 1s)
rapl_backend: RaplBackendTrait Implementations§
Source§impl Debug for ProfilerConfig
impl Debug for ProfilerConfig
Source§impl Default for ProfilerConfig
impl Default for ProfilerConfig
Source§impl<'de> Deserialize<'de> for ProfilerConfig
impl<'de> Deserialize<'de> for ProfilerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProfilerConfig
impl RefUnwindSafe for ProfilerConfig
impl Send for ProfilerConfig
impl Sync for ProfilerConfig
impl Unpin for ProfilerConfig
impl UnsafeUnpin for ProfilerConfig
impl UnwindSafe for ProfilerConfig
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