{"id":13646844,"url":"https://github.com/bengl/pflames","last_synced_at":"2025-09-16T14:30:47.484Z","repository":{"id":57322496,"uuid":"128170125","full_name":"bengl/pflames","owner":"bengl","description":"Easy flamegraphs!","archived":false,"fork":false,"pushed_at":"2019-07-05T20:34:51.000Z","size":8,"stargazers_count":33,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-25T22:48:02.886Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/bengl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-05T06:59:06.000Z","updated_at":"2023-04-23T14:58:00.000Z","dependencies_parsed_at":"2022-08-26T01:11:25.621Z","dependency_job_id":null,"html_url":"https://github.com/bengl/pflames","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bengl%2Fpflames","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bengl%2Fpflames/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bengl%2Fpflames/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bengl%2Fpflames/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bengl","download_url":"https://codeload.github.com/bengl/pflames/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233269955,"owners_count":18650716,"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":[],"created_at":"2024-08-02T01:03:09.758Z","updated_at":"2025-09-16T14:30:42.143Z","avatar_url":"https://github.com/bengl.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# pflames\n\n**`pflames`** is a tool for generating\n[flamegraphs](http://www.brendangregg.com/flamegraphs.html) from various profile\nformats.\n\nThe following formats are supported (detected by file extension):\n\n* **`*.cpuprofile`**, as generated by older Chrome DevTools,\n  [v8-profiler](https://npm.im/v8-profiler),\n  [cli-profile](https://npm.im/cli-profile), etc.\n* **`perf.data`**, as generated by `perf record` on Linux.\n* **`isolate*.log`**, as generated by `node --prof`.\n\nThe data is processed from these formats into flamegraphs generated by Brendan\nGregg's [FlameGraph](https://github.com/brendangregg/FlameGraph) tool, saved to\na local file based on the input filename, then immediately opened in your web\nbrowser.\n\n## Usage\n\nExamples:\n\n```\n$ npm i -g cli-profile\n$ cli-profile myscript.js\n$ ls *.cpuprofile\nprofile1522910623600.cpuprofile\n$ pflames profile1522910623600.cpuprofile\n```\n\n```\n$ # Note: Ensure your script has `process.on('SIGINT', process.exit)`\n$ node --prof myscript.js\n$ ls *.log\nisolate-0x2259700-v8.log\n$ pflames isolate-0x2259700-v8.log\n```\n\n```\n$ sudo perf record -i -g -F 99 -- node --perf-basic-prof myscript.js\n$ pflames perf.data\n```\n\nYou can also compare two profiles of the same format by passing them both in. A\ndifference flamegraph will be generated:\n\n* `$ pflames thing1.cpuprofile thing2.cpuprofile`\n\nYou can also use the same data to generate an icicle graph, so you can get a\nbetter view of what's calling a heavy function:\n\n* `$ pflames --icicle thing1.cpuprofile`\n\n## License\n\nMIT License. See LICENSE.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbengl%2Fpflames","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbengl%2Fpflames","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbengl%2Fpflames/lists"}