yum install perf
ps aux | grep filebeat
perf record -F 99 -p 20315 -g -- sleep 10s
perf record -F 99 -p 5559 -g -- sleep 10s
perf script > test_out.perf
~/FlameGraph-master/stackcollapse-perf.pl --kernel < ./test_out.perf | ~/FlameGraph-master/flamegraph.pl --hash > ./test_out.svg
~/FlameGraph-master/stackcollapse-perf.pl < ./test_out.perf | ~/FlameGraph-master/flamegraph.pl --hash > ./test_out.svg
Created
February 24, 2018 07:17
-
-
Save sursir/f8e87d4cbd5ebcaeeb70772040c91e25 to your computer and use it in GitHub Desktop.
perf flamegraph flame graph
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment