2

I am interested in finding out the exact functions that were executed from the main() until the program terminated in the same order they were called and also identify the lines in those functions that were executed in the same order in which they were executed..

so much like a path, from a start node (main function) to an end node (program termination). Is this something that is possible in gcop or gprof?

Thanks

Bob
  • 4,576
  • 7
  • 39
  • 107
user3259045
  • 89
  • 1
  • 5
  • 2
    probably [Backtraces](http://www.gnu.org/software/libc/manual/html_node/Backtraces.html) or [libunwind](http://www.nongnu.org/libunwind/) – Dabo Apr 18 '14 at 04:02
  • Does this SO thread provide anything useful? http://stackoverflow.com/questions/517589/tools-to-get-a-pictorial-function-call-graph-of-code – MBlanc Apr 18 '14 at 04:03
  • valgrind's callgrind module may help. – John Zwinck Apr 18 '14 at 04:08
  • Hey, I am actually looking for like a textfile or if possible xml to be generated since I want to process this information – user3259045 Apr 18 '14 at 05:55
  • @user3259045 yes but that's the easy part. Hard part is finding a tool that does what you need regardless of the format it outputs. – Bob Sep 02 '16 at 15:07

0 Answers0