0

I've done some static and runtime profiling of an application with gprof, but I would like to know the parameters to the functions as well. I don't care about performance degradation, it is more important that I capture the function parameters for literally each call. Currently I am instrumenting every function of interest and it is tedious and redundant. (I know that gdb can print a stack trace / watch variables but I don't know how to step it function-call-by-function-call automatically to capture this.)

Is there a way to do this with gprof or should I be using a different tool? If so, what tool?

PeterT
  • 811
  • 7
  • 17
  • `gprof` won't do that. The [*method some people use*](https://stackoverflow.com/a/378024/23771) is a bit unusual, but it works. – Mike Dunlavey Jul 16 '21 at 15:08

0 Answers0