Attribute Macro embedded_profiling_proc_macros::profile_function[][src]

#[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>