Profiling rust program made easy.
Note: For now, it only supports dtrace
on mac os x. If there are enough requests, I'll add support for perf on linux.
```sh
cargo profile flamegraph bench --lib
cargo profile flamegraph bench --bench my_bench ```
Binaries built by cargo have some random strings as a suffix, and it makes invoking files generated by cargo harder.
Here comes cargo profile bin-path
to aid it.
sh
perf record `cargo profile bin-path bench --bench fixture`
Note: It does not support dtrace
and perf
yet. Same as above, I'll implement it if there's a need.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.