From: Robert Hancock <hancockrwd@gmail.com>
To: Scott Simpson <simpson100@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: How do you profile an executable that loads shared libraries?
Date: Wed, 18 Feb 2009 20:30:20 -0600 [thread overview]
Message-ID: <499CC43C.3000406@gmail.com> (raw)
In-Reply-To: <79759ec90902181549t292d1adco55416c04366afdad@mail.gmail.com>
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..
prev parent reply other threads:[~2009-02-19 2:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=499CC43C.3000406@gmail.com \
--to=hancockrwd@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=simpson100@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox