Skip to content

Instantly share code, notes, and snippets.

@antonlogvinenko
Last active August 10, 2017 19:57
Show Gist options
  • Save antonlogvinenko/81a929a5549d7dfd30876847fd0375e9 to your computer and use it in GitHub Desktop.
Save antonlogvinenko/81a929a5549d7dfd30876847fd0375e9 to your computer and use it in GitHub Desktop.
async profiler usage
# https://github.com/jvm-profiling-tools/async-profiler
JAVA_HOME=/usr/java/default
export JAVA_HOME
git clone https://github.com/jvm-profiling-tools/async-profiler.git
cd async-profiler
make
git clone https://github.com/brendangregg/FlameGraph.git
./profiler.sh -d 10 -o collapsed -f /tmp/collapsed.txt 31608
FlameGraph/flamegraph.pl --colors=java /tmp/collapsed.txt > /tmp/flamegraph.svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment