Skip to content

Commit 788b13d

Browse files
committed
feat(criterion_compat): add root frame and ipc with runner
1 parent 15bbfef commit 788b13d

File tree

3 files changed

+869
-764
lines changed

3 files changed

+869
-764
lines changed

crates/criterion_compat/criterion_fork/src/analysis/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,13 @@ mod codspeed {
297297
) {
298298
let (uri, bench_name) = create_uri_and_name(id, c);
299299

300+
if let Err(error) = ::codspeed::fifo::send_cmd(codspeed::fifo::Command::CurrentBenchmark {
301+
pid: std::process::id(),
302+
uri: uri.clone(),
303+
}) {
304+
eprintln!("Failed to send benchmark URI to runner: {}", error);
305+
}
306+
300307
let avg_iter_per_round = iters.iter().sum::<f64>() / iters.len() as f64;
301308
let max_time_ns = Some(c.config.measurement_time.as_nanos());
302309
let times_ns = avg_times.iter().map(|t| *t as u128).collect();

0 commit comments

Comments
 (0)