aclysma / profiling

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

Add #[profiling::impl] attribute #37

Closed Kampfkarren closed 11 months ago

Kampfkarren commented 2 years ago

#[profiling::function] is nice, but when I'm starting a benchmark and trying to figure out where pain points are, I would like if I could just put #[profiling::impl] on an impl and automatically profile every function in there. Unsure if proc macros support that.

aclysma commented 2 years ago

It’s a neat idea and I wouldn’t object to it as a feature, but I probably wouldn’t pursue implementing it myself. (I’m not certain if this is possible or not). Would be happy to consider a PR for it.