On Sat, 2007-06-30 at 16:31 +0200, Ewgenij Sokolovski wrote:
If you compile only some of the modules of the program with `-pg', you can still profile the program, but you won't get complete information about the modules that were compiled without `-pg'. The only information you get for the functions in those modules is the total time spent in them; there is no record of how many times they were called, or from where. This will not affect the flat profile (except that the calls field for the functions will be blank), but will greatly reduce the usefulness of the call graph. http://www.cs.utah.edu/dept/old/texinfo/as/gprof.html#SEC2
So the names of the boost functions as well as the time spent inside of them should be shown in the profiler output. Although the corresponding libraries were not compiled with profiling options. Merely the amount of calls and caller names will be not available. But this is apparently not the case here. So what's wrong?
All of the code for the Boost Graph Library is in header files, so it's there in your compiled code. You're only seeing a few because those are the ones that were not inlined away. - Doug