Skip to content

rongfengliang/honest-profiler-hprof2flamegraph

Repository files navigation

honest-profiler + hprof2flamegraph for java flame graph

how to running

  • build docker image
docker-compose build
  • start docker-compose service
docker-compose up -d
  • install hprof2flamegraph pip package

with python venv module && python 3

cd hprof2flamegraph
python -m venv venv
source venv/bin/activate
pip install hprof2flamegraph
  • generate stackcollapse

use hprof2flamegraph && in hprof2flamegraph dir

hprof2flamegraph/venv/bin/stackcollapse-hpl logs/log.hpl > out/output-folded.txt
  • generate flame graph
hprof2flamegraph/venv/bin/flamegraph.pl out/output-folded.txt > out/output.svg
  • view result
open svg image