When using pgprof with ‘-c’ option all the subroutines of the profiled program appear 100% covered, which is impossible in my case.
The program was compiled with pgf77 (v4.1.2) using -Mprof=func,lines option.
I also wrote a small C program containing the following instruction
if ( 1 == 0 ) printf (“test”);
Obviously such program cannot be 100% covered, although pgrpof displays full coverage of it.
Anyone can find an explanation of this behaviour? Thanx a lot.