Skip to content

Commit 6acfcb8

Browse files
committed
feat: add more fifo commands
1 parent d3249c0 commit 6acfcb8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

crates/codspeed/src/fifo.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@ impl BenchGuard {
1919
ctl_fifo: FifoIpc::connect(ctl_fifo)?.with_writer()?,
2020
ack_fifo: FifoIpc::connect(ack_fifo)?.with_reader()?,
2121
};
22+
23+
instance.send_cmd(Command::SetIntegration {
24+
name: "codspeed-rust".into(),
25+
version: env!("CARGO_PKG_VERSION").into(),
26+
})?; // FIXME: Just send it once
2227
instance.send_cmd(Command::StartBenchmark)?;
28+
2329
Ok(instance)
2430
}
2531

crates/codspeed/src/shared.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ pub enum Command {
1212
StartBenchmark,
1313
StopBenchmark,
1414
Ack,
15+
PingPerf,
16+
SetIntegration { name: String, version: String },
17+
Err,
1518
}
1619
//
1720
// !!!!!!!!!!!!!!!!!!!!!!!!

0 commit comments

Comments
 (0)