UNPKG

flamegraph

Version:

Generates flamegraphs with Node.js or in the browser

20 lines (13 loc) 318 B
## Run your app with perf ``` perf record -e cycles:u -g -- node --perf-basic-prof app.js ``` ## Extract trace from `perf.data` file ``` perf script > perf-script.txt ``` ## Convert the script data into a flamegraph Either via the browser or via ``` cat perf-script.txt | flamegraph -t perf > perf-graph.svg ```