--- Execution time profiling --- gprof is the Gnu Profiler, similar to another program "prof". To run it on somthing like fib.c : (1) gcc -pg -g fib.c -o fib The "-pg" includes the gprof stuff Other interesing options: -msupersparc comiler hint -a line by line profiling (2) run the program as usual. A normal exit will create a gmon.out file that has the profiling date. (3) run gprof on analyze the data. (On akbar, /usr/local/bin/gprof) gprof fib gmon.out > fib.profile will analyze the executable fib using it's gmon.out to produce a profile listing fib.profile. Apparently this does execution times and call stacks but not memory. --- Memory profiling ----------------------------- on Linux, I see we do have a "memprof" utility installed (/usr/bin/memprof) but haven't seen enough about how to use it.