Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom cargo profiles #167

Closed
frankier opened this issue Nov 2, 2021 · 2 comments · Fixed by #241
Closed

Support custom cargo profiles #167

frankier opened this issue Nov 2, 2021 · 2 comments · Fixed by #241

Comments

@frankier
Copy link

frankier commented Nov 2, 2021

Now that rust-lang/cargo#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
@djc
Copy link
Contributor

djc commented Nov 2, 2021

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.

@tranzystorekk
Copy link
Contributor

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?

madadam added a commit to madadam/flamegraph that referenced this issue Nov 2, 2022
madadam added a commit to madadam/flamegraph that referenced this issue Nov 2, 2022
madadam added a commit to madadam/flamegraph that referenced this issue Nov 2, 2022
@djc djc closed this as completed in #241 Nov 2, 2022
@djc djc closed this as completed in c532c04 Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants