Skip to content

Commit 9950a54

Browse files
committed
wip: more logs and max freq
1 parent e43a2ff commit 9950a54

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/run/runner/wall_time/executor.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ impl Executor for WallTimeExecutor {
7777
status.map_err(|e| anyhow!("failed to execute the benchmark process. {}", e))?;
7878
debug!("cmd exit status: {:?}", status);
7979

80+
// Debug log of the perf folder
81+
debug!("Perf folder: {:?}", run_data.profile_folder);
82+
83+
// walk all entries
84+
let entries = std::fs::read_dir(&run_data.profile_folder)?;
85+
for entry in entries {
86+
let entry = entry?;
87+
debug!("Entry: {:?}", entry);
88+
}
89+
8090
if !status.success() {
8191
bail!("failed to execute the benchmark process: {}", status);
8292
}

src/run/runner/wall_time/perf/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ impl PerfRunner {
9999
cmd.args([
100100
"-c",
101101
&format!(
102-
"perf record --user-callchains --freq=999 --switch-output=signal --control=fifo:{},{} --delay=-1 -g --call-graph={cg_mode} --output={} -- {bench_cmd}",
102+
"perf record --user-callchains --freq=max --switch-output=signal --control=fifo:{},{} --delay=-1 -g --call-graph={cg_mode} --output={} -- {bench_cmd}",
103103
perf_fifo.ctl_fifo_path.to_string_lossy(),
104104
perf_fifo.ack_fifo_path.to_string_lossy(),
105105
perf_file.path().to_string_lossy()

0 commit comments

Comments
 (0)