Use perf performance analysis, see FIG flame may be generated, below one minute Tutorial:
1, upload the archive to be downloaded from the perf machine https://github.com/brendangregg/FlameGraph
2, according to the project description Home to the flame Figure 4 line commands:
perf record -F 1000 -p 59750 -g -- sleep 180
perf script > out.perf
./FlameGraph-1.0/stackcollapse-perf.pl out.perf > out.folded
./FlameGraph-1.0/flamegraph.pl out.folded > out.svg
3, open out.svg