35 cli_.add_argument(lyra::opt(config_.show_help)
39 .help(
"Show this help."));
41 cli_.add_argument(lyra::opt(config_.plot_prefix,
"prefix")
44 .help(
"Generate plots of results."));
46 cli_.add_argument(lyra::opt(config_.json_file_path,
"filepath")
49 .help(
"Generate JSON data file of results."));
51 cli_.add_argument(lyra::opt(config_.msgpack_file_path,
"filepath")
54 .help(
"Generate MsgPack data file of results."));
57 lyra::opt(config_.compressed_msgpack_file_path,
"filepath")
58 .name(
"--compressed-msgpack")
60 .help(
"Generate compressed MsgPack data file of results."));
62 cli_.add_argument(lyra::opt(config_.processing_time_samples,
"num")
65 .choices([](std::size_t val) { return val > 0; })
66 .help(
"Number of samples for measurements of processing time."));
68 cli_.add_argument(lyra::opt(config_.mean_processing_time_samples,
"num")
69 .name(
"--mean_samples")
71 .choices([](std::size_t val) { return val > 0; })
73 "Number of samples for measurements of mean processing time."));
75 cli_.add_argument(lyra::opt(config_.min_sample_duration_sec,
"num")
76 .name(
"--min_sample_duration")
78 .choices([](
double val) { return val > 0.0; })
79 .help(
"Minimum duration of a sample for measurement "
80 "of mean processing time. [sec]"));
82 cli_.add_argument(lyra::opt(config_.min_warming_up_iterations,
"num")
83 .name(
"--min_warming_up_iterations")
85 .help(
"Minimum number of iterations for warming up."));
87 cli_.add_argument(lyra::opt(config_.min_warming_up_duration_sec,
"num")
88 .name(
"--min_warming_up_duration_sec")
90 .choices([](
double val) { return val >= 0.0; })
91 .help(
"Minimum duration for warming up. [sec]"));
93 cli_.add_argument(lyra::opt(config_.include_glob,
"pattern")
96 .help(
"Specify glob patterns of benchmark names to include."
97 "When omitted, this option won't filter any benchmarks."));
99 cli_.add_argument(lyra::opt(config_.exclude_glob,
"pattern")
102 .help(
"Specify glob patterns of benchmark names to exclude."
103 "When omitted, this option won't filter any benchmarks."));
105 cli_.add_argument(lyra::opt(config_.include_regex,
"regex")
106 .name(
"--include_regex")
108 .help(
"Specify regular expressions of benchmark names to include."
109 "When omitted, this option won't filter any benchmarks."));
111 cli_.add_argument(lyra::opt(config_.exclude_regex,
"regex")
112 .name(
"--exclude_regex")
114 .help(
"Specify regular expressions of benchmark names to exclude."
115 "When omitted, this option won't filter any benchmarks."));