List of all function calls made in an application

前端 未结 4 2000
甜味超标
甜味超标 2020-12-04 14:37

How can we list all the functions being called in an application. I tried using GDB but its backtrace list only upto the main function call.

I need deeper list i.e

4条回答
  •  半阙折子戏
    2020-12-04 15:28

    You want a call graph. The tool that you want to use is not gdb, it's gprof. You compile your program with -pg and then run it. When it runs a file gmon.out will be produced. You then process this file with gprof and enjoy the output.

提交回复
热议问题