We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f087d8 commit 194d890Copy full SHA for 194d890
1 file changed
src/run/runner/wall_time/perf/mod.rs
@@ -155,10 +155,14 @@ impl PerfRunner {
155
}
156
};
157
158
+ let sample_freq = std::env::var("CODSPEED_PERF_SAMPLE_FREQ")
159
+ .ok()
160
+ .and_then(|freq| freq.parse::<u32>().ok())
161
+ .unwrap_or(999);
162
cmd.args([
163
"-c",
164
&format!(
- "sudo perf record {quiet_flag} --user-callchains --freq=999 --switch-output --control=fifo:{},{} --delay=-1 -g --call-graph={cg_mode} --output={} -- {bench_cmd}",
165
+ "sudo perf record {quiet_flag} --user-callchains --freq={sample_freq} --switch-output --control=fifo:{},{} --delay=-1 -g --call-graph={cg_mode} --output={} -- {bench_cmd}",
166
perf_fifo.ctl_fifo_path.to_string_lossy(),
167
perf_fifo.ack_fifo_path.to_string_lossy(),
168
perf_file.path().to_string_lossy(),
0 commit comments