#[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.
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.
#[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 animpl
and automatically profile every function in there. Unsure if proc macros support that.