Skip to content

Commit 8a5606f

Browse files
feat: add more events to perf monitoring
1 parent 2359e53 commit 8a5606f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • src/run/runner/wall_time/perf

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ impl PerfRunner {
130130
// Required for matching the markers and URIs to the samples.
131131
"-k",
132132
"CLOCK_MONOTONIC",
133+
// TODO: Figure out perfect events and make sure they're available on macro-runners
134+
// TODO: Dynamically adjust events based on the CPU capabilities to avoid crashing ?
135+
"-e {cycles,cache-misses,L1-dcache-load-misses,L1-icache-load-misses}",
133136
"--freq=997", // Use a prime number to avoid synchronization with periodic tasks
134137
"--delay=-1",
135138
"-g",

0 commit comments

Comments
 (0)