Skip to content

Commit

Permalink
Always pass -o to perf
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Dec 16, 2024
1 parent 4a88601 commit 9196297
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ mod arch {
}
}

let perf_output = match perf_output {
Some(path) => path,
None => {
command.arg("-o");
command.arg("perf.data");
PathBuf::from("perf.data")
}
};

match workload {
Workload::Command(c) => {
command.args(&c);
Expand All @@ -92,7 +101,7 @@ mod arch {
}

run(command, verbose, ignore_status);
perf_output
Some(perf_output)
}

pub fn output(
Expand Down

0 comments on commit 9196297

Please sign in to comment.