Missing dependency on perf
Description:
cargo-flamegraph
used to depend on perf
, but as of of 3514d6e4 it no longer does. However, running cargo-flamegraph
without perf
installed will inevitably crash:
$ cargo flamegraph <options omitted but any crate might do>
thread 'main' panicked at src/lib.rs:283:40:
could not spawn perf: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
While it's technically possible to install and run the binary without having perf
installed, it can do no useful work. I believe perf
should be restored as a full dependency.
Additional info:
- package version(s): 0.6.5-2:
- config and/or log files: n/a
- link to upstream bug report, if any: n/a
Steps to reproduce:
- Run cargo flamegraph
- Step 2
- ...