Skip to content

Instantly share code, notes, and snippets.

View zimmermanw84's full-sized avatar
👾

Walter Zimmerman zimmermanw84

👾
View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@zimmermanw84
zimmermanw84 / perf-flame-graph-notes.md
Created July 21, 2016 16:58 — forked from trevnorris/perf-flame-graph-notes.md
Quick steps of how to create a flame graph using perf

The prep-script.sh will setup the latest Node and install the latest perf version on your Linux box.

When you want to generate the flame graph, run the following (folder locations taken from install script):

sudo sysctl kernel.kptr_restrict=0
# May also have to do the following:
# (additional reading http://unix.stackexchange.com/questions/14227/do-i-need-root-admin-permissions-to-run-userspace-perf-tool-perf-events-ar )
sudo sysctl kernel.perf_event_paranoid=0