flamegraph icon indicating copy to clipboard operation
flamegraph copied to clipboard

Support custom cargo profiles

Open frankier opened this issue 4 years ago • 2 comments

Now that https://github.com/rust-lang/cargo/issues/6988 is stabilized, it might be nice if it were possible to specify any profile rather than just --dev or --release. This was we can have an optimised debug release which is probably optimal for flamegraphing:

[profile.release-debug]
lto = "fat"
codegen-units = 1
debug = true

frankier avatar Nov 02 '21 11:11 frankier

Would be happy to have a PR for this, though I'd probably want to hold off merging until --profile is actually available in stable.

djc avatar Nov 02 '21 12:11 djc

Would be happy to have a PR for this, though I'd probably want to hold off merging until --profile is actually available in stable.

The time has come! 🥳

I wonder if there is a way for flamegraph to provide a default "inherit from release + debug_symbols" profile?

tranzystorekk avatar Dec 03 '21 07:12 tranzystorekk