Struct frame_benchmarking_cli::BenchmarkCmd [−][src]
The benchmark
command used to benchmark FRAME Pallets.
Fields
pallet: String
Select a FRAME Pallet to benchmark, or *
for all (in which case extrinsic
must be *
).
extrinsic: String
Select an extrinsic inside the pallet to benchmark, or *
for all.
steps: Vec<u32>
Select how many samples we should take across the variable components.
lowest_range_values: Vec<u32>
Indicates lowest values for each of the component ranges.
highest_range_values: Vec<u32>
Indicates highest values for each of the component ranges.
repeat: u32
Select how many repetitions of this benchmark should run.
raw_data: bool
Print the raw results.
no_median_slopes: bool
Don’t print the median-slopes linear regression analysis.
no_min_squares: bool
Don’t print the min-squares linear regression analysis.
output: Option<PathBuf>
Output the benchmarks to a Rust file at the given path.
header: Option<PathBuf>
Add a header file to your outputted benchmarks
template: Option<PathBuf>
Path to Handlebars template file used for outputting benchmark results. (Optional)
heap_pages: Option<u64>
Set the heap pages while running benchmarks.
no_verify: bool
Disable verification logic when running benchmarks.
extra: bool
Display and run extra benchmarks that would otherwise not be needed for weight construction.
execution: Option<ExecutionStrategy>
The execution strategy that should be used for benchmarks
wasm_method: WasmExecutionMethod
Method for executing Wasm runtime code.
database_cache_size: u32
Limit the memory the database cache can use.
Implementations
impl BenchmarkCmd
[src]
pub fn run<BB, ExecDispatch>(&self, config: Configuration) -> Result<()> where
BB: BlockT + Debug,
<<<BB as BlockT>::Header as HeaderT>::Number as FromStr>::Err: Debug,
<BB as BlockT>::Hash: FromStr,
ExecDispatch: NativeExecutionDispatch + 'static,
[src]
BB: BlockT + Debug,
<<<BB as BlockT>::Header as HeaderT>::Number as FromStr>::Err: Debug,
<BB as BlockT>::Hash: FromStr,
ExecDispatch: NativeExecutionDispatch + 'static,
Runs the command and benchmarks the chain.
Trait Implementations
impl CliConfiguration<()> for BenchmarkCmd
[src]
fn shared_params(&self) -> &SharedParams
[src]
fn chain_id(&self, _is_dev: bool) -> Result<String>
[src]
pub fn import_params(&self) -> Option<&ImportParams>
[src]
pub fn pruning_params(&self) -> Option<&PruningParams>
[src]
pub fn keystore_params(&self) -> Option<&KeystoreParams>
[src]
pub fn network_params(&self) -> Option<&NetworkParams>
[src]
pub fn offchain_worker_params(&self) -> Option<&OffchainWorkerParams>
[src]
pub fn node_key_params(&self) -> Option<&NodeKeyParams>
[src]
pub fn database_params(&self) -> Option<&DatabaseParams>
[src]
pub fn base_path(&self) -> Result<Option<BasePath>, Error>
[src]
pub fn is_dev(&self) -> Result<bool, Error>
[src]
pub fn role(&self, _is_dev: bool) -> Result<Role, Error>
[src]
pub fn transaction_pool(&self) -> Result<Options, Error>
[src]
pub fn network_config(
&self,
chain_spec: &Box<dyn ChainSpec + 'static, Global>,
is_dev: bool,
net_config_dir: PathBuf,
client_id: &str,
node_name: &str,
node_key: NodeKeyConfig,
default_listen_port: u16
) -> Result<NetworkConfiguration, Error>
[src]
&self,
chain_spec: &Box<dyn ChainSpec + 'static, Global>,
is_dev: bool,
net_config_dir: PathBuf,
client_id: &str,
node_name: &str,
node_key: NodeKeyConfig,
default_listen_port: u16
) -> Result<NetworkConfiguration, Error>
pub fn keystore_config(
&self,
config_dir: &PathBuf
) -> Result<(Option<String>, KeystoreConfig), Error>
[src]
&self,
config_dir: &PathBuf
) -> Result<(Option<String>, KeystoreConfig), Error>
pub fn database_cache_size(&self) -> Result<Option<usize>, Error>
[src]
pub fn database_transaction_storage(
&self
) -> Result<TransactionStorageMode, Error>
[src]
&self
) -> Result<TransactionStorageMode, Error>
pub fn database(&self) -> Result<Option<Database>, Error>
[src]
pub fn database_config(
&self,
base_path: &PathBuf,
cache_size: usize,
database: Database
) -> Result<DatabaseSettingsSrc, Error>
[src]
&self,
base_path: &PathBuf,
cache_size: usize,
database: Database
) -> Result<DatabaseSettingsSrc, Error>
pub fn state_cache_size(&self) -> Result<usize, Error>
[src]
pub fn state_cache_child_ratio(&self) -> Result<Option<usize>, Error>
[src]
pub fn state_pruning(
&self,
unsafe_pruning: bool,
role: &Role
) -> Result<PruningMode, Error>
[src]
&self,
unsafe_pruning: bool,
role: &Role
) -> Result<PruningMode, Error>
pub fn keep_blocks(&self) -> Result<KeepBlocks, Error>
[src]
pub fn node_name(&self) -> Result<String, Error>
[src]
pub fn wasm_method(&self) -> Result<WasmExecutionMethod, Error>
[src]
pub fn wasm_runtime_overrides(&self) -> Option<PathBuf>
[src]
pub fn execution_strategies(
&self,
is_dev: bool,
is_validator: bool
) -> Result<ExecutionStrategies, Error>
[src]
&self,
is_dev: bool,
is_validator: bool
) -> Result<ExecutionStrategies, Error>
pub fn rpc_http(
&self,
_default_listen_port: u16
) -> Result<Option<SocketAddr>, Error>
[src]
&self,
_default_listen_port: u16
) -> Result<Option<SocketAddr>, Error>
pub fn rpc_ipc(&self) -> Result<Option<String>, Error>
[src]
pub fn rpc_ws(
&self,
_default_listen_port: u16
) -> Result<Option<SocketAddr>, Error>
[src]
&self,
_default_listen_port: u16
) -> Result<Option<SocketAddr>, Error>
pub fn rpc_methods(&self) -> Result<RpcMethods, Error>
[src]
pub fn rpc_ws_max_connections(&self) -> Result<Option<usize>, Error>
[src]
pub fn rpc_cors(
&self,
_is_dev: bool
) -> Result<Option<Vec<String, Global>>, Error>
[src]
&self,
_is_dev: bool
) -> Result<Option<Vec<String, Global>>, Error>
pub fn prometheus_config(
&self,
_default_listen_port: u16
) -> Result<Option<PrometheusConfig>, Error>
[src]
&self,
_default_listen_port: u16
) -> Result<Option<PrometheusConfig>, Error>
pub fn telemetry_endpoints(
&self,
chain_spec: &Box<dyn ChainSpec + 'static, Global>
) -> Result<Option<TelemetryEndpoints>, Error>
[src]
&self,
chain_spec: &Box<dyn ChainSpec + 'static, Global>
) -> Result<Option<TelemetryEndpoints>, Error>
pub fn telemetry_external_transport(
&self
) -> Result<Option<ExtTransport>, Error>
[src]
&self
) -> Result<Option<ExtTransport>, Error>
pub fn default_heap_pages(&self) -> Result<Option<u64>, Error>
[src]
pub fn offchain_worker(
&self,
role: &Role
) -> Result<OffchainWorkerConfig, Error>
[src]
&self,
role: &Role
) -> Result<OffchainWorkerConfig, Error>
pub fn force_authoring(&self) -> Result<bool, Error>
[src]
pub fn disable_grandpa(&self) -> Result<bool, Error>
[src]
pub fn dev_key_seed(&self, _is_dev: bool) -> Result<Option<String>, Error>
[src]
pub fn tracing_targets(&self) -> Result<Option<String>, Error>
[src]
pub fn tracing_receiver(&self) -> Result<TracingReceiver, Error>
[src]
pub fn node_key(&self, net_config_dir: &PathBuf) -> Result<NodeKeyConfig, Error>
[src]
pub fn max_runtime_instances(&self) -> Result<Option<usize>, Error>
[src]
pub fn announce_block(&self) -> Result<bool, Error>
[src]
pub fn create_configuration<C>(
&self,
cli: &C,
task_executor: TaskExecutor,
telemetry_handle: Option<TelemetryHandle>
) -> Result<Configuration, Error> where
C: SubstrateCli,
[src]
&self,
cli: &C,
task_executor: TaskExecutor,
telemetry_handle: Option<TelemetryHandle>
) -> Result<Configuration, Error> where
C: SubstrateCli,
pub fn log_filters(&self) -> Result<String, Error>
[src]
pub fn is_log_filter_reloading_disabled(&self) -> Result<bool, Error>
[src]
pub fn disable_log_color(&self) -> Result<bool, Error>
[src]
pub fn init<C>(&self) -> Result<TelemetryWorker, Error> where
C: SubstrateCli,
[src]
C: SubstrateCli,
impl Debug for BenchmarkCmd
[src]
impl StructOpt for BenchmarkCmd
[src]
fn clap<'a, 'b>() -> App<'a, 'b>
[src]
fn from_clap(matches: &ArgMatches<'_>) -> Self
[src]
pub fn from_args() -> Self
[src]
pub fn from_args_safe() -> Result<Self, Error>
[src]
pub fn from_iter<I>(iter: I) -> Self where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
pub fn from_iter_safe<I>(iter: I) -> Result<Self, Error> where
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
[src]
I: IntoIterator,
<I as IntoIterator>::Item: Into<OsString>,
<I as IntoIterator>::Item: Clone,
impl StructOptInternal for BenchmarkCmd
[src]
fn augment_clap<'a, 'b>(app: App<'a, 'b>) -> App<'a, 'b>
[src]
fn is_subcommand() -> bool
[src]
pub fn from_subcommand(
_sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
[src]
_sub: (&'b str, Option<&'b ArgMatches<'a>>)
) -> Option<Self>
Auto Trait Implementations
impl RefUnwindSafe for BenchmarkCmd
impl Send for BenchmarkCmd
impl Sync for BenchmarkCmd
impl Unpin for BenchmarkCmd
impl UnwindSafe for BenchmarkCmd
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedConversion for T
[src]
pub fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
pub fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IsType<T> for T
[src]
pub fn from_ref(t: &T) -> &T
[src]
pub fn into_ref(&self) -> &T
[src]
pub fn from_mut(t: &mut T) -> &mut T
[src]
pub fn into_mut(&mut self) -> &mut T
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
pub fn from_ref(outer: &Outer) -> &T
[src]
Get a reference to the inner from the outer.
pub fn from_mut(outer: &mut Outer) -> &mut T
[src]
Get a mutable reference to the inner from the outer.
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeDebug for T where
T: Debug,
[src]
T: Debug,
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
[src]
pub fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
[src]
Self: UniqueSaturatedFrom<T>,
pub fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
[src]
Self: UniqueSaturatedInto<T>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
T: UncheckedFrom<S>,
pub fn unchecked_into(self) -> T
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
S: TryInto<T>,
T: Bounded,
[src]
S: TryInto<T>,
T: Bounded,
pub fn unique_saturated_into(self) -> T
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,