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?