Expand description

Runtime Metrics helpers.

A runtime metric provider implementation that builds on top of Substrate wasm tracing support. This requires that the custom profiler (TraceHandler) to be registered in substrate via a logger_hook(). Events emitted from runtime are then captured/processed by the TraceHandler implementation.

Don’t add logs in this file because it gets executed before the logger is initialized and they won’t be delivered. Add println! statements if you need to debug this code.

Structs§

Functions§

  • Returns the custom profiling closure that we’ll apply to the LoggerBuilder.