This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Can you use gprof on shared libraries?


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]