I have a single threaded application that uses shared libraries. I compile the app and the shared libraries with -pg. This gives me a gmon.out when I run, however, gprof doesn't seem to print any of the information from the shared libraries. Is there any way to get this information in shared libraries?
Also, I noticed on the ld.so manual page there is a LD_PROFILE variable that takes the name of a library. Do I need to use that?