I have been profiling an application with mixed Fortran and C using gcc and pgf77. I am using the -pg flag to enable profiling. When I compile and use the 6.1 version, I get results close to what I would expect. However when using the 6.2 compiler, the profiler does not appear to assign the times correctly. It appears to be confused between the boundaries of the C and Fortran routines. gprof on the same data produces expected results. Is there a compatibility issue between 6.2 and gcc?
Can you send either the source or binaries which exhibit this behavior as well as the resulting gmon.out files to firstname.lastname@example.org? I’d like to have one of our tools engineers take a look and determine why you’re not getting the expected results. While there were no changes to how “-pg” works from 6.1 to 6.2, there were a lot of other performance improvements which may account for the differences.