Mail Archives: djgpp/1998/12/21/17:43:35
I'm having problems profiling my programs. I'm using the beta version of
egcs-1.1.1, and binutils 2.8.1. I compile and link my programs with the
-pg switch. But whenever I profile a program using gprof test.exe it
reports that the first function listed in the profile list takes 0.06
seconds, and 100% of the program time. All other functions are reported to
take 0.00 seconds. This goes for all of the programs I have tested. One of
them made calculations for 1.5 minutes, and it still only reported that all
functions took 0.00 seconds to execute. If I put a sleep() call in a
function it still takes 0.00 seconds to execute according to gprof.
If anyone could help me with this I would really appreciate it, because I
would like to be able to profile my programs.
- Raw text -