-
Notifications
You must be signed in to change notification settings - Fork 158
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
build: shrink profiling artifacts with panic=abort
#2601
base: master
Are you sure you want to change the base?
Conversation
af69395
to
c468b5b
Compare
694b7ce
to
889d636
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #2601 +/- ##
============================================
- Coverage 79.37% 77.77% -1.60%
Complexity 2198 2198
============================================
Files 199 225 +26
Lines 21955 25955 +4000
Branches 0 986 +986
============================================
+ Hits 17426 20186 +2760
- Misses 4529 5243 +714
- Partials 0 526 +526
Flags with carried forward coverage won't be shown. Click here to find out more. see 26 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
I gave it a spin and the release binary on |
ci: use rustup-init instead of tarball This is done because the tarball does not include rust-src. ci: parameterized ZTS/NTS for build_profiler task
829cbd4
to
df44977
Compare
BenchmarksBenchmark execution time: 2024-04-16 01:22:05 Comparing candidate commit 829cbd4 in PR branch Found 3 performance improvements and 5 performance regressions! Performance is the same for 170 metrics, 0 unstable metrics. scenario:ContextPropagationBench/benchInject64Bit-opcache
scenario:LogsInjectionBench/benchLogsInfoInjection-opcache
scenario:PDOBench/benchPDOBaseline
scenario:PDOBench/benchPDOBaseline-opcache
scenario:PDOBench/benchPDOOverhead
scenario:PDOBench/benchPDOOverheadWithDBM
scenario:SamplingRuleMatchingBench/benchRegexMatching2-opcache
scenario:SamplingRuleMatchingBench/benchRegexMatching3
|
f1279b5
to
ce05987
Compare
panic=abort
Description
Recently the build artifacts got quite large due to the tracer including debug symbols for things. The profiler has also been creeping up in size, and so I thought I'd try to shrink the build artifacts. These all seem to individually give small decreases in size:
codegen-units=1
lto="fat"
debug="line-tables-only"
panic=abort
-Z build-std="panic_abort,core,alloc,std"
. However, this requires nightly, to avoid this, we use theRUSTC_BOOTSTRAP=1
hack.Note that if you are buliding locally to try to reproduce savings, we also compress with
objcopy --compress-debug-sections
afterwards.Reviewer checklist