gprof2dot

Convert profiler output into Graphviz dot graphs for visualization

brewmacoslinux
Try with needOr install directly
Source

About

Convert the output from many profilers into a Graphviz dot graph

Commands

gprof2dot

Examples

Convert gprof output to a dot graph$ gprof ./program | gprof2dot | dot -Tpng -o output.png
Convert Python cProfile output to a visualization$ python -m cProfile -o stats.prof script.py && gprof2dot -f pstats stats.prof | dot -Tsvg -o profile.svg
Convert perf output and save as PDF$ perf record -o perf.data ./program && perf script | gprof2dot -f perf | dot -Tpdf -o graph.pdf