pub struct CliArgs {
pub verbose: u8,
pub output_format: Option<OutputFormat>,
pub output_file: Option<String>,
pub sources: Vec<Source>,
pub overrides: Vec<ConfigOverride>,
pub config_file: Option<PathBuf>,
pub command: ProfilerCommand,
}Expand description
joule-profiler: measure program energy consumption
Fields§
§verbose: u8Verbosity (-v, -vv, -vvv)
output_format: Option<OutputFormat>Output format to export the results in. (e.g., terminal, json, csv)
output_file: Option<String>Output file for CSV/JSON. (else data<TIMESTAMP>.csv/json)
sources: Vec<Source>Sources activation list. All sources must be separated with a comma (e.g., “rapl,nvml”).
overrides: Vec<ConfigOverride>Override a configuration key, repeatable. (e.g., -D profiler.rapl_backend=powercap)
KEY is the dotted path of the key in the configuration file, so any key a configuration file can set is settable here: -D profiler.output_format=json -D sources.rapl.sockets_spec=[0,1] -D sources.cgroup.create_cgroup=false
VALUE is read as TOML, falling back to a plain string, so durations, regexes and paths need no quoting. Overrides are applied on top of the –config file, and configuring a source enables it.
config_file: Option<PathBuf>TOML configuration file. Every key it sets can also be set with -D.
command: ProfilerCommandThe command to execute.
Implementations§
Trait Implementations§
Source§impl Args for CliArgs
impl Args for CliArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for CliArgs
impl CommandFactory for CliArgs
Source§impl FromArgMatches for CliArgs
impl FromArgMatches for CliArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.