This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Can you use gprof on shared libraries?
- From: Scott Simpson <simpson100 at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 19 Feb 2009 15:08:10 -0800
- Subject: 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?