{"id":15653371,"url":"https://github.com/zemse/forge-flamegraph","last_synced_at":"2025-10-14T03:31:34.372Z","repository":{"id":234700873,"uuid":"788964613","full_name":"zemse/forge-flamegraph","owner":"zemse","description":"🔥 flamegraphs for solidity","archived":true,"fork":false,"pushed_at":"2024-09-11T08:19:00.000Z","size":213,"stargazers_count":35,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-04T12:45:34.932Z","etag":null,"topics":["flamegraph","foundry","solidity"],"latest_commit_sha":null,"homepage":"https://ethglobal.com/showcase/not-decided-0gr0p","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/zemse.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}},"created_at":"2024-04-19T12:42:41.000Z","updated_at":"2024-09-11T08:19:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"111ce5cc-0d74-43fd-b632-83bdd5fc02fd","html_url":"https://github.com/zemse/forge-flamegraph","commit_stats":null,"previous_names":["zemse/forge-flamegraph"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fforge-flamegraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fforge-flamegraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fforge-flamegraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemse%2Fforge-flamegraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zemse","download_url":"https://codeload.github.com/zemse/forge-flamegraph/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236441988,"owners_count":19149327,"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":["flamegraph","foundry","solidity"],"created_at":"2024-10-03T12:45:29.516Z","updated_at":"2025-10-14T03:31:34.054Z","avatar_url":"https://github.com/zemse.png","language":"Rust","readme":"\u003e Upstreamed in https://github.com/foundry-rs/foundry/pull/8640\n\n# forge-flamegraph\n\na foundry plugin that generates interactive flamegraph for a test case. currently two backends are supported: calltrace and debugtrace.\n\nlets forge some flamegraphs!\n\n[![flamegraph of poseidon2 hash function](./flamegraph_poseidon_debug.svg)](https://zemse.github.io/forge-flamegraph/flamegraph_poseidon_debug.svg)\n\nabove is a debugtrace flamegraph of [poseidon2 hash function](https://github.com/zemse/poseidon2).\n\n## Installation\n\n```bash\ncargo install --git https://github.com/zemse/forge-flamegraph \n```\n\n## Usage\n\n### `calltrace`\n\nsuitable for complex contracts like defi protocols. generates flamegraph svg with the call trace.\n\n```bash\nforge-flamegraph -t NAME_OF_TEST_FUNCTION --open\n```\n\n### `debugtrace`\n\nsuitable for libraries. generates flamegraph svg including solidity internal functions.\n\n```bash\nforge-flamegraph -t NAME_OF_TEST_FUNCTION --debugtrace --open\n```\n\n\u003e Note: source mappings from the solidity compiler aren't that great, this plugin still tries to guess by looking at source mappings of adjacent steps but unfortunately it only works to some extent.\n\n## Acknowledgements\n\n- [brockelmore](https://github.com/brockelmore) for foundry's debugger\n- jonhoo for [inferno](https://github.com/jonhoo/inferno)\n\nand ofcourse for so much oss used in this project\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemse%2Fforge-flamegraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzemse%2Fforge-flamegraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemse%2Fforge-flamegraph/lists"}