Struct resctl_bench_intf::args::Args
source · [−]pub struct Args {Show 34 fields
pub dir: String,
pub dev: Option<String>,
pub linux_tar: Option<String>,
pub rep_retention: u64,
pub systemd_timeout: f64,
pub hashd_size: Option<usize>,
pub hashd_fake_cpu_load: Option<bool>,
pub mem_profile: Option<u32>,
pub mem_avail: usize,
pub mem_margin: f64,
pub mode: Mode,
pub iocost_qos_ovr: IoCostQoSOvr,
pub swappiness_ovr: Option<u32>,
pub job_specs: Vec<JobSpec>,
pub result: String,
pub study_rep_d: String,
pub iocost_from_sys: bool,
pub keep_reports: bool,
pub clear_reports: bool,
pub force: bool,
pub force_shadow_inode_prot_test: bool,
pub skip_shadow_inode_prot_test: bool,
pub test: bool,
pub verbosity: u32,
pub rstat: u32,
pub merge_srcs: Vec<String>,
pub merge_by_id: bool,
pub merge_ignore_versions: bool,
pub merge_ignore_sysreqs: bool,
pub merge_multiple: bool,
pub upload_email: Option<String>,
pub upload_github: Option<String>,
pub upload_url: Option<String>,
pub doc_subjects: Vec<String>,
}
Fields
dir: String
dev: Option<String>
linux_tar: Option<String>
rep_retention: u64
systemd_timeout: f64
hashd_size: Option<usize>
hashd_fake_cpu_load: Option<bool>
mem_profile: Option<u32>
mem_avail: usize
mem_margin: f64
mode: Mode
iocost_qos_ovr: IoCostQoSOvr
swappiness_ovr: Option<u32>
job_specs: Vec<JobSpec>
result: String
study_rep_d: String
iocost_from_sys: bool
keep_reports: bool
clear_reports: bool
force: bool
force_shadow_inode_prot_test: bool
skip_shadow_inode_prot_test: bool
test: bool
verbosity: u32
rstat: u32
merge_srcs: Vec<String>
merge_by_id: bool
merge_ignore_versions: bool
merge_ignore_sysreqs: bool
merge_multiple: bool
upload_email: Option<String>
upload_github: Option<String>
upload_url: Option<String>
doc_subjects: Vec<String>
Implementations
sourceimpl Args
impl Args
pub const RB_BENCH_FILENAME: &'static str = "rb-bench.json"
pub const DFL_MEM_PROFILE: u32 = 16u32
pub fn set_help_body(help: &'static str)
pub fn demo_bench_knobs_path(&self) -> String
pub fn bench_knobs_path(&self) -> String
pub fn parse_propset(input: &str) -> BTreeMap<String, String>
pub fn parse_job_spec(spec: &str) -> Result<JobSpec>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Args where
Args: Default,
impl<'de> Deserialize<'de> for Args where
Args: Default,
sourcefn 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
sourceimpl JsonArgs for Args
impl JsonArgs for Args
fn match_cmdline() -> ArgMatches<'static>
fn verbosity(matches: &ArgMatches<'_>) -> u32
fn process_cmdline(&mut self, matches: &ArgMatches<'_>) -> bool
fn system_configuration_overrides(
_matches: &ArgMatches<'_>
) -> (Option<usize>, Option<usize>, Option<usize>)
Auto Trait Implementations
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> JsonArgsHelper for T where
T: JsonArgs,
impl<T> JsonArgsHelper for T where
T: JsonArgs,
fn init_args_and_logging_nosave() -> Result<(JsonConfigFile<T>, bool), Error>
fn save_args(args_file: &JsonConfigFile<T>) -> Result<(), Error>
fn init_args_and_logging() -> Result<JsonConfigFile<T>, Error>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more