Attribute Macro profiling::function [−][src]
#[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() {
}