{"id":17014500,"url":"https://github.com/silversquirl/zik","last_synced_at":"2025-04-22T13:44:46.080Z","repository":{"id":229565320,"uuid":"777048671","full_name":"silversquirl/zik","owner":"silversquirl","description":"Source-level static instrumentation framework for Zig","archived":false,"fork":false,"pushed_at":"2024-03-25T05:09:39.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T03:51:17.929Z","etag":null,"topics":["instrumentation","profiler","tracing","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/silversquirl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2024-03-25T04:56:45.000Z","updated_at":"2024-05-29T09:04:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"e0d54d36-1072-4429-8875-291350bab21e","html_url":"https://github.com/silversquirl/zik","commit_stats":null,"previous_names":["silversquirl/zik"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silversquirl%2Fzik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silversquirl%2Fzik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silversquirl%2Fzik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/silversquirl%2Fzik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/silversquirl","download_url":"https://codeload.github.com/silversquirl/zik/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250250982,"owners_count":21399735,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["instrumentation","profiler","tracing","zig"],"created_at":"2024-10-14T06:25:09.927Z","updated_at":"2025-04-22T13:44:46.065Z","avatar_url":"https://github.com/silversquirl.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zig Instrumentation Kit\n\nA slightly cursed library for source-level static instrumentation in Zig.\n\nThis repository also includes a simple function-level profiler that outputs to the [callgrind format](https://valgrind.org/docs/manual/cl-format.html), which is readable by [KCacheGrind](https://kcachegrind.github.io/html/Home.html).\n\n## Using the profiler\n\n**NOTE: This is currently proof-of-concept quality. Notably, multithreaded programs will not work at all**\n\nBuild the profiler using `zig build zikprof`, then run the binary from `zig-out/bin/zikprof` with the same args you'd normally pass to `zig`. (TODO: this does not currently work with `zig build`. Stick to `zig build-exe`, `zig run`, etc)\n\nThis will copy your entire source tree, rooted at `build.zig`, into `zig-cache/tmp/zik/src`, instrument it, then run the Zig command as normal. (TODO: this should be more transparent to the user. Build output and program output should be placed in the locations one would expect from running Zig normally)\n\nHere is an example usage:\n\n```\nzig build zikprof\ncd example\n../zig-out/bin/zikprof run main.zig\n```\n\nYou can then open `example/zig-cache/tmp/zik/src/callgrind.out.zikprof.\u003cPID\u003e` in KCacheGrind to inspect the call graph.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilversquirl%2Fzik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsilversquirl%2Fzik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsilversquirl%2Fzik/lists"}