This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
How do you profile an executable that loads shared libraries?
- From: Scott Simpson <simpson100 at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 18 Feb 2009 17:24:36 -0800
- Subject: How do you profile an executable that loads shared libraries?
I have an executable that loads shared libraries. I compiled with "-g
-pg" and then I ran gprof on the gmon.out file. I don't see any of the
shared libraries that the program loaded in my gprof output. How do
you profile shared libraries?
Also, I saw on the ld.so man page the LD_PROFILE variable but I found
information on the net that says variable should not be used when
using -pg.
Can someone help me out? I can't find information *anywhere* on
profiling shared libraries using gprof or the LD_PROFILE variable.