pub struct CliArgs {
pub verbose: u8,
pub rapl_path: Option<String>,
pub sockets: Option<String>,
pub json: bool,
pub csv: bool,
pub output_file: Option<String>,
pub gpu: bool,
pub perf: bool,
pub rapl_backend: RaplBackend,
pub command: ProfilerCommand,
}Expand description
joule-profiler: measure program energy consumption
Fields§
§verbose: u8Verbosity (-v, -vv, -vvv)
rapl_path: Option<String>Override the base path used to read Intel RAPL counters.
By default, the profiler reads from: /sys/devices/virtual/powercap/intel-rapl
If not provided, the profiler uses (by priority):
- $
JOULE_PROFILER_RAPL_PATH(if set) - /sys/devices/virtual/powercap/intel-rapl
sockets: Option<String>Sockets to measure (e.g. 0 or 0,1)
json: boolExport results as JSON instead of pretty terminal output
csv: boolExport results as CSV (semicolon-separated values)
output_file: Option<String>Output file for CSV/JSON (else data<TIMESTAMP>.csv/json)
gpu: boolGPU support
perf: boolperf_event counters support
rapl_backend: RaplBackendChoose RAPL backend between powercap or perf
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
Append to
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>
Assign values from
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>
Assign values from
ArgMatches to self.Source§impl Parser for CliArgs
impl Parser for CliArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for CliArgs
impl RefUnwindSafe for CliArgs
impl Send for CliArgs
impl Sync for CliArgs
impl Unpin for CliArgs
impl UnsafeUnpin for CliArgs
impl UnwindSafe for CliArgs
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