Is it possible to get a graphical representation of gprof results?

Open the way picture Open the way · Mar 13, 2010 · Viewed 26.6k times · Source

I am interested in getting the profiling of some number crunching program. I compiled it with -g and -pg options and linked it and got it gmon.out. After reading the info (plain text) it looks a bit ugly. I wonder if there are some open source tools for getting a graphical representation of the 10 functions where the program spends the most of the time as well as a flux diagram.

Thanks

Answer

msw picture msw · Mar 13, 2010

Gprof2Dot by jrfonseca is a tool that converts the output of many profilers, amongst which gprof, into a dot graph.