Skip to content

Commit 9d9c5af

Browse files
authored
fixup!
1 parent f2a94a5 commit 9d9c5af

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

apps/site/pages/en/learn/diagnostics/flame-graphs.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,11 @@ perf record -e cycles:u -g -- node --perf-basic-prof --interpreted-frames-native
4141
4. Disregard warnings unless they're saying you can't run perf due to missing packages; you may get some warnings about not being able to access kernel module samples which you're not after anyway.
4242
5. Run `perf script > perfs.out` to generate the data file you'll visualize in a moment. It's useful to [apply some cleanup](#filtering-out-nodejs-internal-functions) for a more readable graph
4343
6. Preview or generate the flame graph:
44-
45-
- Browser preview (no local setup required):
46-
47-
- Upload the generated `perfs.out` file to <https://flamegraph.com> to visualize the flame graph.
48-
49-
- Clone Brendan Gregg's FlameGraph tools: https://github.com/brendangregg/FlameGraph
50-
51-
- Run `cat perfs.out | ./FlameGraph/stackcollapse-perf.pl | ./FlameGraph/flamegraph.pl --colors=js > profile.svg` and now open the flame graph file in your favorite browser and watch it burn
44+
- Browser preview (no local setup required):
45+
- Upload the generated `perfs.out` file to <https://flamegraph.com> to visualize the flame graph.
46+
47+
- Clone Brendan Gregg's FlameGraph tools: https://github.com/brendangregg/FlameGraph
48+
- Run `cat perfs.out | ./FlameGraph/stackcollapse-perf.pl | ./FlameGraph/flamegraph.pl --colors=js > profile.svg` and now open the flame graph file in your favorite browser and watch it burn
5249

5350
Once the flame graph is rendered, inspect the most saturated orange bars first. They're likely to represent CPU heavy functions.
5451

0 commit comments

Comments
 (0)