[][src]Trait frame_benchmarking::Benchmark

pub trait Benchmark<Block: BlockT>: Core<Block> {
    fn dispatch_benchmark(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        pallet: Vec<u8>,
        benchmark: Vec<u8>,
        lowest_range_values: Vec<u32>,
        highest_range_values: Vec<u32>,
        steps: Vec<u32>,
        repeat: u32
    ) -> Result<Result<Vec<BenchmarkBatch>, RuntimeString>, Self::Error> { ... }
fn dispatch_benchmark_with_context(
        &self,
        __runtime_api_at_param__: &BlockId<Block>,
        context: ExecutionContext,
        pallet: Vec<u8>,
        benchmark: Vec<u8>,
        lowest_range_values: Vec<u32>,
        highest_range_values: Vec<u32>,
        steps: Vec<u32>,
        repeat: u32
    ) -> Result<Result<Vec<BenchmarkBatch>, RuntimeString>, Self::Error> { ... } }

Runtime api for benchmarking a FRAME runtime.

Provided methods

fn dispatch_benchmark(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    pallet: Vec<u8>,
    benchmark: Vec<u8>,
    lowest_range_values: Vec<u32>,
    highest_range_values: Vec<u32>,
    steps: Vec<u32>,
    repeat: u32
) -> Result<Result<Vec<BenchmarkBatch>, RuntimeString>, Self::Error>

Dispatch the given benchmark.

fn dispatch_benchmark_with_context(
    &self,
    __runtime_api_at_param__: &BlockId<Block>,
    context: ExecutionContext,
    pallet: Vec<u8>,
    benchmark: Vec<u8>,
    lowest_range_values: Vec<u32>,
    highest_range_values: Vec<u32>,
    steps: Vec<u32>,
    repeat: u32
) -> Result<Result<Vec<BenchmarkBatch>, RuntimeString>, Self::Error>

Dispatch the given benchmark.

Loading content...

Trait Implementations

impl<Block: BlockT, __Sr_Api_Error__> RuntimeApiInfo for dyn Benchmark<Block, Error = __Sr_Api_Error__>[src]

Implementors

Loading content...