Attribute Macro metriki_macros::timed [−][src]
#[timed]
Expand description
timed
macro is design as an attibute for function.
The macro adds timer metric for the function execution.
Available options:
registry
: the code to accessMetricsRegistry
.global_registry()
by default.name
: name for the timer metric. Function name is used by default, be careful with name conflict in different module because the macro cannot detect the module name.