flamegraph-rs / flamegraph

Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3
Apache License 2.0
4.62k stars 141 forks source link

Added a command line option to ignore perf's return status #250

Closed lorlouis closed 1 year ago

lorlouis commented 1 year ago

Adds a --ignore-status flag which ignores perf's exit code.

why?

I was trying to use flamegraph on a failing test and flamegraph would fail with "failed to sample program" even though perf was able to sample the program because perf would return the same exit code as the program it was running (a failing test), this confused flamegraph and it though that perf was not able to sample the program.

djc commented 1 year ago

Thanks!