We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0648b6c + dd43464 commit 24e70c0Copy full SHA for 24e70c0
collector/src/rustc-fake.rs
@@ -209,7 +209,14 @@ fn main() {
209
210
// With --cache-sim=no and --branch-sim=no, Cachegrind just
211
// collects instruction counts.
212
- cmd.arg("--tool=cachegrind")
+ cmd
213
+ // We disable jemalloc's delayed purging to eliminate noise
214
+ // when benchmarks are around the 10 second mark.
215
+ //
216
+ // See https://github.com/rust-lang/rust/pull/77162 for some
217
+ // further details.
218
+ .env("MALLOC_CONF", "dirty_decay_ms:0,muzzy_decay_ms:0")
219
+ .arg("--tool=cachegrind")
220
.arg("--cache-sim=no")
221
.arg("--branch-sim=no")
222
.arg("--cachegrind-out-file=cgout")
0 commit comments