C Program tracing ....

Roger Oberholtzer roger
Mon Jun 12 12:59:20 PDT 2006


On Mon, 2006-06-12 at 14:33 -0500, Ben Duncan wrote:
> I need to trace a C program when it is run.
> 
> I need to know how/what functions are getting called.
> Does not have to be real time, just gotta figure out which functions
> are getting called and when ...
> 
> Anyone got any pointers ....

gprof. It comes with gcc. You have to compile your program to use it.
But it is rather straight forward.

--
Roger





More information about the Linux-users mailing list