Skip to content

Commit 24931d6

Browse files
committed
Skip remaining iterations on Windows too
On Linux and Mac, remaining iterations are skipped if the command returns non-success exit status. Do the same on Windows.
1 parent bd79123 commit 24931d6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

samply/src/windows/profiler.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ pub fn start_recording(
110110
// give us a chance to stop xperf.
111111
let exit_status = child.wait().unwrap();
112112
if !exit_status.success() {
113-
eprintln!("Child process exited with {:?}", exit_status);
113+
eprintln!(
114+
"Skipping remaining iterations due to non-success exit status: \"{}\"",
115+
exit_status
116+
);
117+
break;
114118
}
115119
}
116120

0 commit comments

Comments
 (0)