referrerpolicy=no-referrer-when-downgrade

Function trace

Source
pub fn trace<R, F: FnOnce() -> R>(
    tracer: &mut (dyn Tracing + 'static),
    f: F,
) -> R
Expand description

Trace the execution of the given closure.

§Warning

Only meant to be called from off-chain code as its additional resource usage is not accounted for in the weights or memory envelope.