Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The bench profile is a default profile that already exists that gets used when running benches.
It inherits from release and all the config that we set for it is already set by release.
So I just deleted it.
The profiling profile is a profile derived from release that windsock uses to recompile shotover to ensure that it has debuginfo enabled so that profiling it will give useful results.
The magic line that enables this is
debug = true
but previously I also thought that we needed to disable LTO.However it turns out that it works just fine with LTO enabled.
So this PR enables lto by removing the
lto = false
line and letting it fall back to the release profileslto = fat
This is very useful as it ensures that we are profiling a binary that is a lot closer to what we release.
I also removed the
codegen-units = 1
line since that is already set in the release profile that we derive from.I did attempt to combine the profiling and release profiles, so that we are profiling the same binary we release.
However with
debug = true
the binary increases to 186MB from 20MB, this is way too big.If I then enable split-debuginfo it reduces to 40MB but that is still too large.
So with the current state of things I dont we think we should combine them.