Attribute Macro profiling::function

source ·
#[function]
Expand description

Proc macro for creating a scope around the function, using the name of the function for the scope’s name

This must be done as a proc macro because tracing requires a const string

#[profiling::function]
fn my_function() {

}