flamegraph-rs / flamegraph

Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not compatible with `-Zpanic_abort_tests`

alecmocatta opened this issue · comments

panic = abort plue -Zpanic_abort_tests results in a forked process per test. At least on macOS, dtrace is not following forks in the executed binary, so it doesn't see the tests actually being run.

cc rust-lang/rust#67650

RUSTFLAGS='-Cpanic=abort -Zpanic_abort_tests' cargo flamegraph --root --test sync

image

cargo flamegraph --root --test sync

image

I'm not sure if there's something we could do about this within reasonable complexity -- or at least, I probably don't have time/motivation to address this use case, though would be happy to look at a PR if you want to submit one.