Closed jtmoon79 closed 1 year ago
Makes sense, want to submit a PR?
Makes sense, want to submit a PR?
I'll put it on my TODO list.
@djc I think this feature was already implemented by @madadam in c532c046b171952f8812dd76b09298c0c558bf8d (Issue #167 )
Could a new version of flamegraph be released?
Released https://github.com/flamegraph-rs/flamegraph/releases/tag/v0.6.3 last week.
tl;dr allow passing
--profile
tocargo flamegraph
Problem
In
Cargo.toml
, I optimized the release profile for the binary.Now
cargo flamegraph
fails withSolution
Allow passing
--profile=profile_name
tocargo flamegraph
, similar tocargo build --profile=...
. Thenflamegraph
could then pass theprofile_name
to the underlyingcargo build --profile=
call. This would allow creating a custom profile for flamegraph inCargo.toml
.For example, I would then be able to add to
Cargo.toml
:and then I could select that build profile with