{"id":51097059,"url":"https://github.com/y21/wiiperf","last_synced_at":"2026-06-24T07:31:07.476Z","repository":{"id":361639721,"uuid":"1235003233","full_name":"y21/wiiperf","owner":"y21","description":"cpu sampling profiler for the wii","archived":false,"fork":false,"pushed_at":"2026-05-31T15:11:08.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-31T17:09:47.148Z","etag":null,"topics":["powerpc","profiler","rust","wii"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/y21.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2026-05-10T23:05:48.000Z","updated_at":"2026-05-31T15:11:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/y21/wiiperf","commit_stats":null,"previous_names":["y21/wiiperf"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/y21/wiiperf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y21%2Fwiiperf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y21%2Fwiiperf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y21%2Fwiiperf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y21%2Fwiiperf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/y21","download_url":"https://codeload.github.com/y21/wiiperf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/y21%2Fwiiperf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34722608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["powerpc","profiler","rust","wii"],"created_at":"2026-06-24T07:31:06.779Z","updated_at":"2026-06-24T07:31:07.467Z","avatar_url":"https://github.com/y21.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wiiperf\n\nA CPU sampling profiler for the Wii.\n\n\u003e ⚠️ Stability status: \"works on my dolphin\" (works but expect rough edges)\n\n### Building\nThis project requires a pinned nightly Rust toolchain (see rust-toolchain.toml) as well as devkitpro build tools (powerpc-eabi-gcc, elf2dol). \n\nThere are two targets you can build: \n\n- `cargo xtask build example --release`: builds an example DOL that you can run in Dolphin. The DOL will be at the workspace root. `--release` is optional, will be faster but omitting it can be easier to debug.\nYou can play around with the main function and add some code; it will continuously print results as it collects samples. \n\n- `cargo xtask build lib --release`: creates a self-contained `.a` archive containing the library in `target/powerpc-unknown-eabi/{release,debug}/libwiiperf.a`. This can be linked together with any other project and is the main way to use this. \n\n### Usage\nAfter building the library as shown in the previous section, you can add `-Lpath-to-archive -lwiiperfc` to your build command to link it in and start by calling `wiiperf_install();`\nSee wiiperfc/capi.h for the full API and docs. \n\n### How it works\nwiiperf uses the decrementer cpu register to trigger frequent interrupts. It registers a decrementer exception handler to collects SRR0 values (addresses at which the interrupt occurs), and sorts if by frequency.\n\n### Limitations\n- this register is often also used for timers (e.g. if you're using libogc, it registers its own decrementer handler which creates a conflict). wiiperf tries to \"proxy\" any existing handlers and it should still work, but the code you're integrating wiiperf into might adjust the decrementer in ways that can make sampling inaccurate.\n- the `.a` archive currently contains various symbols that libgcc normally ships which can result in your code calling not into libgcc's routines but this library's. Most of these shouldn't make a difference, but e.g. `__divdi3` traps when previously it might not.\n- if threads are involved, interpreting it may be harder or potentially misleading.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy21%2Fwiiperf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fy21%2Fwiiperf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fy21%2Fwiiperf/lists"}