1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
mod command;
mod writer;
use sc_cli::{ExecutionStrategy, WasmExecutionMethod};
use std::fmt::Debug;
#[derive(Debug, structopt::StructOpt)]
pub struct BenchmarkCmd {
#[structopt(short, long)]
pub pallet: String,
#[structopt(short, long)]
pub extrinsic: String,
#[structopt(short, long, use_delimiter = true)]
pub steps: Vec<u32>,
#[structopt(long = "low", use_delimiter = true)]
pub lowest_range_values: Vec<u32>,
#[structopt(long = "high", use_delimiter = true)]
pub highest_range_values: Vec<u32>,
#[structopt(short, long, default_value = "1")]
pub repeat: u32,
#[structopt(long = "raw")]
pub raw_data: bool,
#[structopt(long)]
pub no_median_slopes: bool,
#[structopt(long)]
pub no_min_squares: bool,
#[structopt(long)]
pub output: Option<std::path::PathBuf>,
#[structopt(long)]
pub header: Option<std::path::PathBuf>,
#[structopt(long)]
pub template: Option<std::path::PathBuf>,
#[structopt(long)]
pub heap_pages: Option<u64>,
#[structopt(long)]
pub no_verify: bool,
#[structopt(long)]
pub extra: bool,
#[allow(missing_docs)]
#[structopt(flatten)]
pub shared_params: sc_cli::SharedParams,
#[structopt(
long = "execution",
value_name = "STRATEGY",
possible_values = &ExecutionStrategy::variants(),
case_insensitive = true,
)]
pub execution: Option<ExecutionStrategy>,
#[structopt(
long = "wasm-execution",
value_name = "METHOD",
possible_values = &WasmExecutionMethod::enabled_variants(),
case_insensitive = true,
default_value = "Interpreted"
)]
pub wasm_method: WasmExecutionMethod,
#[structopt(long = "db-cache", value_name = "MiB", default_value = "128")]
pub database_cache_size: u32,
}