Try adding it to CFLAGS.
Type: Posts; User: MK27
Try adding it to CFLAGS.
Oh yuck -- you need to contemplate my signature Jeff. The gprof man page is one of many still used in the FIFTH CIRCLE OF HELL!!!
Okay, here's how to use gprof:
1) compile: gcc -pg -fprofile-arcs -ftest-coverage
2) now run the executable once, this will create a file "gmon.out"
3) then gprof -b ./a.out (or the exe name).