Attribute Macro profile_function

Source
#[profile_function]
Expand description

profiles the annotated function using embedded_profiling.

#[embedded_profiling::profile_function]
fn my_long_running_function() {
    println!("Hello, world!");
}
// Prints:
// Hello, world!
// <EPSS my_long_running_function: xx us>