list_benchmark

Macro list_benchmark 

Source
macro_rules! list_benchmark {
    ( $list:ident, $extra:ident, $name:path, $location:ty ) => { ... };
}
Expand description

This macro allows users to easily generate a list of benchmarks for the pallets configured in the runtime.

To use this macro, first create an object to store the list:

let mut list = Vec::<BenchmarkList>::new();

Then pass this list to the macro, along with the extra boolean, the pezpallet crate, and pezpallet struct:

list_benchmark!(list, extra, pezpallet_balances, Balances);
list_benchmark!(list, extra, pezpallet_session, SessionBench::<Runtime>);
list_benchmark!(list, extra, pezframe_system, SystemBench::<Runtime>);

This should match what exists with the add_benchmark! macro.