| 1 |
<div align="center"> |
| 2 |
<h1>instrument-hooks</h1> |
| 3 |
|
| 4 |
[](https://github.com/CodSpeedHQ/instrument-hooks/actions/workflows/ci.yml) |
| 5 |
[](https://discord.com/invite/MxpaCfKSqF) |
| 6 |
|
| 7 |
Zig library to control instrumentations via IPC. |
| 8 |
|
| 9 |
</div> |
| 10 |
|
| 11 |
## Requirements |
| 12 |
|
| 13 |
- **Zig**: 0.14 |
| 14 |
- [**Just**](https://github.com/casey/just) (optional): To easily run the build, formatter or tests |
| 15 |
|
| 16 |
## Adding CodSpeed support for a new language |
| 17 |
|
| 18 |
To integrate CodSpeed with a new language or benchmarking framework, you need to build a **custom harness** on top of `instrument-hooks`. See the **[custom harness guide](./CUSTOM_HARNESS.md)** for a step-by-step walkthrough, including a copy-paste prompt for setting it up with an AI agent. A minimal C harness is available in [`example/`](./example/). |
| 19 |
|
| 20 |
## Run tests |
| 21 |
|
| 22 |
``` |
| 23 |
zig build test --summary all |
| 24 |
``` |
| 25 |
or |
| 26 |
``` |
| 27 |
just test |
| 28 |
``` |