diff --git a/hydro_deploy/core/src/localhost/mod.rs b/hydro_deploy/core/src/localhost/mod.rs index 1f9bdbe7954f..a15632af030e 100644 --- a/hydro_deploy/core/src/localhost/mod.rs +++ b/hydro_deploy/core/src/localhost/mod.rs @@ -229,8 +229,10 @@ impl LaunchedHost for LaunchedLocalhost { "record", "-F", &tracing.frequency.to_string(), + "-e", + "cycles:u", "--call-graph", - "dwarf,64000", + "dwarf,65528", "-o", ]) .arg(perf_outfile) diff --git a/hydro_deploy/core/src/ssh.rs b/hydro_deploy/core/src/ssh.rs index a6a281b95430..dd315f06fe18 100644 --- a/hydro_deploy/core/src/ssh.rs +++ b/hydro_deploy/core/src/ssh.rs @@ -380,7 +380,7 @@ impl LaunchedHost for T { if let Some(TracingOptions { frequency, .. }) = tracing.clone() { // Attach perf to the command command = format!( - "perf record -F {frequency} --call-graph dwarf,64000 -o {PERF_OUTFILE} {command}", + "perf record -F {frequency} -e cycles:u --call-graph dwarf,65528 -o {PERF_OUTFILE} {command}", ); } channel.exec(&command).await?; diff --git a/hydroflow_plus_test/examples/perf_compute_pi.rs b/hydroflow_plus_test/examples/perf_compute_pi.rs index 88a3eaa80493..ebdf36db01dd 100644 --- a/hydroflow_plus_test/examples/perf_compute_pi.rs +++ b/hydroflow_plus_test/examples/perf_compute_pi.rs @@ -62,7 +62,7 @@ async fn main() { .dtrace_outfile("leader.stacks") .fold_outfile("leader.data.folded") .flamegraph_outfile("leader.svg") - .frequency(5) + .frequency(128) .build(), ), ) @@ -78,7 +78,7 @@ async fn main() { .dtrace_outfile(format!("cluster{}.leader.stacks", idx)) .fold_outfile(format!("cluster{}.data.folded", idx)) .flamegraph_outfile(format!("cluster{}.svg", idx)) - .frequency(5) + .frequency(128) .build(), ) })