{"id":28183864,"url":"https://github.com/codspeedhq/instrument-hooks","last_synced_at":"2026-01-25T03:02:50.632Z","repository":{"id":293066560,"uuid":"966908644","full_name":"CodSpeedHQ/instrument-hooks","owner":"CodSpeedHQ","description":"Internal core for the codspeed instruments","archived":false,"fork":false,"pushed_at":"2026-01-15T17:40:20.000Z","size":589,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-15T20:16:00.920Z","etag":null,"topics":["benchmarking","codspeed"],"latest_commit_sha":null,"homepage":"https://codspeed.io/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodSpeedHQ.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-15T16:25:09.000Z","updated_at":"2026-01-14T18:26:49.000Z","dependencies_parsed_at":"2025-12-18T23:06:23.124Z","dependency_job_id":null,"html_url":"https://github.com/CodSpeedHQ/instrument-hooks","commit_stats":null,"previous_names":["codspeedhq/instrument-hooks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CodSpeedHQ/instrument-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodSpeedHQ%2Finstrument-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodSpeedHQ%2Finstrument-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodSpeedHQ%2Finstrument-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodSpeedHQ%2Finstrument-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodSpeedHQ","download_url":"https://codeload.github.com/CodSpeedHQ/instrument-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodSpeedHQ%2Finstrument-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28742973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T02:46:29.005Z","status":"ssl_error","status_checked_at":"2026-01-25T02:44:29.968Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["benchmarking","codspeed"],"created_at":"2025-05-16T05:11:34.075Z","updated_at":"2026-01-25T03:02:50.620Z","avatar_url":"https://github.com/CodSpeedHQ.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003einstrument-hooks\u003c/h1\u003e\n\n[![CI](https://github.com/CodSpeedHQ/instrument-hooks/actions/workflows/ci.yml/badge.svg)](https://github.com/CodSpeedHQ/instrument-hooks/actions/workflows/ci.yml)\n[![Discord](https://img.shields.io/badge/chat%20on-discord-7289da.svg)](https://discord.com/invite/MxpaCfKSqF)\n\nZig library to control instrumentations via IPC.\n\n\u003c/div\u003e\n\n## Requirements\n\n- **Zig**: 0.14\n- [**Just**](https://github.com/casey/just) (optional): To easily run the build, formatter or tests\n\n## How to add new integration?\n\nThis library is intended to be used as a C library. The main source file is in `dist/core.c` and the headers are in `includes/`. See `examples/main.c` for an example on how to use it.\n\nTo test if it worked, call `is_instrumented` which should return `false` when running without Codspeed. To run with Codspeed, execute the following:\n```\ncodspeed run -- \u003cyour_cmd\u003e\n```\n\nTo make sure your integration is fully working, you have to implement all these hooks:\n- start_benchmark: Call this when the benchmark starts, to start measuring the performance.\n- stop_benchmark: Stop measuring the performance after the benchmark stopped.\n- set_executed_benchmark: Provide metadata about which benchmark was executed.\n- set_integration: Provide metadata about the integration.\n\n## Run tests\n\n```\nzig build test --summary all\n```\nor\n```\njust test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodspeedhq%2Finstrument-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodspeedhq%2Finstrument-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodspeedhq%2Finstrument-hooks/lists"}