What is “gprof2dot” ?

GProf2Dot is a Python tool. It can be used to visualize such profiler output as a colorful directed call graph that makes it easy to understand the statistics. Profilers can be used to profile your code and dump the output to a file, as different profilers use different formats. The graph is produced in the DOT format, which can be viewed or converted to an image file.

Convert the output from many profilers into a Graphviz dot graph.!
More Information: https://github.com/jrfonseca/gprof2dot
Steps:

  1. Launch Terminal by pressing command+space, type terminal and hit Enter key.
  2. Run
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  3. Install
    brew install gprof2dot

Done!