{"id":13438194,"url":"https://github.com/mrhooray/torch","last_synced_at":"2025-07-16T18:05:22.395Z","repository":{"id":66158140,"uuid":"41335665","full_name":"mrhooray/torch","owner":"mrhooray","description":"Generate CPU FlameGraphs based on DWARF Debug Info","archived":false,"fork":false,"pushed_at":"2017-11-20T03:14:38.000Z","size":151,"stargazers_count":132,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-11T21:38:13.662Z","etag":null,"topics":["cpu","dwarf","flamegraph","perf","rust"],"latest_commit_sha":null,"homepage":"","language":"Perl","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/mrhooray.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}},"created_at":"2015-08-25T01:24:35.000Z","updated_at":"2024-08-19T03:51:36.000Z","dependencies_parsed_at":"2023-03-10T07:00:49.031Z","dependency_job_id":null,"html_url":"https://github.com/mrhooray/torch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrhooray/torch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrhooray%2Ftorch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrhooray%2Ftorch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrhooray%2Ftorch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrhooray%2Ftorch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrhooray","download_url":"https://codeload.github.com/mrhooray/torch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrhooray%2Ftorch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265528955,"owners_count":23782790,"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":["cpu","dwarf","flamegraph","perf","rust"],"created_at":"2024-07-31T03:01:03.571Z","updated_at":"2025-07-16T18:05:22.374Z","avatar_url":"https://github.com/mrhooray.png","language":"Perl","readme":"# torch\n\u003e A script that glues perf CPU sampling and [Brendan Gregg's visualizer](https://github.com/brendangregg/FlameGraph) to generate FlameGraphs.\n\n* [Requirements](#requirements)\n* [Usage](#usage)\n* [Examples](#examples)\n* [License](#license)\n\n## Requirements\nLinux 3.7 and above\n\n## Usage\n```\n#./torch.sh -h\nUsage: ./torch.sh [options] pid\n\nOptions:\n-d, --duration \u003cnum\u003e  duration of sampling in seconds [default: 10]\n-o, --output \u003cfile\u003e   file to save flamegraph to [default: ./flamegraph.svg]\n-h, --help            this message\n```\n\n## Examples\n### Click graph to zoom\nA loop printing stuff ([source](https://github.com/mrhooray/torch/blob/master/examples/loop.rs))\n[![loop](https://cdn.rawgit.com/mrhooray/torch/master/examples/loop.svg)](https://cdn.rawgit.com/mrhooray/torch/master/examples/loop.svg)\nTcp Echo Server ([source](https://github.com/mrhooray/torch/blob/master/examples/tcp-echo-server.rs)) with [coio-rs](https://github.com/zonyitoo/coio-rs)\n[![tcp-echo-server](https://cdn.rawgit.com/mrhooray/torch/master/examples/tcp-echo-server.svg)](https://cdn.rawgit.com/mrhooray/torch/master/examples/tcp-echo-server.svg)\nHTTP Hello World ([source](https://github.com/mrhooray/torch/blob/master/examples/http-hello-world.rs)) with [hyper](https://github.com/hyperium/hyper)\n[![http-hello-world](https://cdn.rawgit.com/mrhooray/torch/master/examples/http-hello-world.svg)](https://cdn.rawgit.com/mrhooray/torch/master/examples/http-hello-world.svg)\n\n## License\nMIT\nCDDL\n","funding_links":[],"categories":["Development tools","开发工具 Development tools","开发工具"],"sub_categories":["Profiling","分析 Profiling","剖析"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrhooray%2Ftorch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrhooray%2Ftorch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrhooray%2Ftorch/lists"}