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