#[skip]
Expand description
Proc macro to skip the auto_impl for the function
pub struct Foo {
// some data...
}
#[profiling::all_functions]
impl Foo {
pub fn do_something(&self) {
// some code...
}
#[profiling::skip]
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...
}
pub fn do_otherthing(&self) {
// some code...
}
}