How to visualize profiler output as graph using Gprof2Dot

Updated post here: https://codeyarns.github.io/tech/2013-06-24-how-to-visualize-profiler-output-as-graph-using-gprof2dot.html