* How do you profile an executable that loads shared libraries?
@ 2009-02-18 23:49 Scott Simpson
2009-02-19 2:30 ` Robert Hancock
0 siblings, 1 reply; 2+ messages in thread
From: Scott Simpson @ 2009-02-18 23:49 UTC (permalink / raw)
To: linux-kernel
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.
Sorry to post here. I don't know where else to post.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How do you profile an executable that loads shared libraries?
2009-02-18 23:49 How do you profile an executable that loads shared libraries? Scott Simpson
@ 2009-02-19 2:30 ` Robert Hancock
0 siblings, 0 replies; 2+ messages in thread
From: Robert Hancock @ 2009-02-19 2:30 UTC (permalink / raw)
To: Scott Simpson; +Cc: linux-kernel
Scott Simpson wrote:
> 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.
>
> Sorry to post here. I don't know where else to post.
Can't really help you with gprof, but in most cases it's likely much
easier to use oprofile instead, then you don't have to recompile your app..
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-19 2:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-18 23:49 How do you profile an executable that loads shared libraries? Scott Simpson
2009-02-19 2:30 ` Robert Hancock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox