Skip to content

Commit b0c1fe9

Browse files
committed
Always pass -o to perf
1 parent 3ed3c82 commit b0c1fe9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/lib.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ mod arch {
8080
}
8181
}
8282

83+
let perf_output = match perf_output {
84+
Some(path) => path,
85+
None => {
86+
command.arg("-o");
87+
command.arg("perf.data");
88+
PathBuf::from("perf.data")
89+
}
90+
};
91+
8392
match workload {
8493
Workload::Command(c) => {
8594
command.args(&c);
@@ -92,7 +101,7 @@ mod arch {
92101
}
93102

94103
run(command, verbose, ignore_status);
95-
perf_output
104+
Some(perf_output)
96105
}
97106

98107
pub fn output(

0 commit comments

Comments
 (0)