timholy / SnoopCompile.jl

Provide insights about latency (TTFX) for Julia packages
https://timholy.github.io/SnoopCompile.jl/dev/
Other
309 stars 48 forks source link

Skip higher-order funcs for inference triggers #183

Closed timholy closed 3 years ago

timholy commented 3 years ago

When identifying the caller of an inference-triggering callee, sometimes it's nice to skip over higher order functions. For instance in a do-block, you might prefer to attribute any inference trigger in the anonymous function to the parent scope that implemented the do-block rather than the higher-order function used by the do-statement.

timholy commented 3 years ago

Test failure is due to a timing shift and unrelated to this PR. Will fix in a separate PR.