mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Scott Simpson <simpson100@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: How do you profile an executable that loads shared libraries?
Date: Wed, 18 Feb 2009 15:49:09 -0800	[thread overview]
Message-ID: <79759ec90902181549t292d1adco55416c04366afdad@mail.gmail.com> (raw)

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.

             reply	other threads:[~2009-02-18 23:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-18 23:49 Scott Simpson [this message]
2009-02-19  2:30 ` Robert Hancock

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=79759ec90902181549t292d1adco55416c04366afdad@mail.gmail.com \
    --to=simpson100@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®