#[all_functions]
Expand description
Proc macro for creating a scope around each function under struct impl block
pub struct Foo {
// some data...
}
#[profiling::all_functions]
impl Foo {
pub fn do_something(&self) {
// some code...
}
pub fn do_otherthing(&self) {
// some code...
}
}
The following will generate the same code
pub struct Foo {
// some data...
}
impl Foo {
#[profiling::function]
pub fn do_something(&self) {
// some code...
}
#[profiling::function]
pub fn do_otherthing(&self) {
// some code...
}
}