aclysma / profiling

Provides a very thin abstraction over instrumented profiling crates like puffin, optick, tracy, and superluminal-perf.
Apache License 2.0
323 stars 39 forks source link

`function` proc macro break some clippy lints #75

Open gwen-lg opened 1 month ago

gwen-lg commented 1 month ago

Use of #[profiling::function] shouldn't break Clippy lint detection like missing_errors_doc.

Currently, this report no lint

/// This `profiling::function` attribute is equivalent to profiling::scope!(function_name)
#[profiling::function]
fn some_function() -> Result<(), Error>{
    burn_time(5)?;
}

while, this report missing_errors_doc lint

fn some_function() -> Result<(), Error>{
    profiling::scope!(function_name)
    burn_time(5)?;
}