Skip to content

Commit 0f03002

Browse files
committed
Log a warning when rustc benchmark produces no data
1 parent b49053c commit 0f03002

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

collector/src/compile/execute/rustc.rs

+8
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,14 @@ async fn record(
144144
}
145145
}
146146

147+
// Sanity check
148+
if timing_data.is_empty() {
149+
log::warn!(
150+
"rustc benchmark failed to produce timing data\nSTDOUT:\n{}\n\nSTDERR:{timings}\n",
151+
String::from_utf8_lossy(&output.stdout)
152+
);
153+
}
154+
147155
let version = get_rustc_perf_commit();
148156
let collection = conn.collection_id(&version).await;
149157

0 commit comments

Comments
 (0)