Skip to content

Commit 8c9fd4a

Browse files
committed
chore: more logs
1 parent 2afc20b commit 8c9fd4a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/run/runner/wall_time/perf

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl PerfRunner {
9696
cmd.args([
9797
"-c",
9898
&format!(
99-
"perf record --user-callchains --freq=999 --switch-output --control=fifo:{},{} --delay=-1 -g --call-graph={cg_mode} --output={} -- {bench_cmd}",
99+
"perf record --user-callchains --freq=999 --switch-output=signal --control=fifo:{},{} --delay=-1 -g --call-graph={cg_mode} --output={} -- {bench_cmd}",
100100
perf_fifo.ctl_fifo_path.to_string_lossy(),
101101
perf_fifo.ack_fifo_path.to_string_lossy(),
102102
perf_file.path().to_string_lossy()
@@ -195,11 +195,13 @@ impl PerfRunner {
195195
loop {
196196
let perf_ping = tokio::time::timeout(Duration::from_secs(1), perf_fifo.ping()).await;
197197
if let Ok(Err(_)) | Err(_) = perf_ping {
198+
error!("Perf timeout");
198199
break;
199200
}
200201

201202
let result = tokio::time::timeout(Duration::from_secs(1), runner_fifo.recv_cmd()).await;
202203
let Ok(Ok(cmd)) = result else {
204+
error!("Recv cmd timeout");
203205
continue;
204206
};
205207
debug!("Received command: {:?}", cmd);

0 commit comments

Comments
 (0)