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

前端 未结 2 2147
说谎
说谎 2020-12-24 12:45

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 (p

相关标签:
2条回答
  • 2020-12-24 13:47

    Not quite an answer to your question, but maybe a solution to your problem: I switched from gprof to valgrind's callgrind tool, primarily because of the incredible graphical tool kcachegrind, which you can use to visualize the results. It's interactive, so you can zoom in on interesting parts of the call graph.

    Gprof2dot works with callgrind as well as gprof.

    0 讨论(0)
  • 2020-12-24 13:48

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

    0 讨论(0)
提交回复
热议问题