From: Andrew Cagney <ac131313@cygnus.com>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: gdb@sources.redhat.com
Subject: Re: Profiling gdb?
Date: Sun, 20 Jan 2002 19:27:00 -0000 [thread overview]
Message-ID: <3C4B8A6B.30407@cygnus.com> (raw)
In-Reply-To: <20020120210343.A22638@nevyn.them.org>
> What was the final status of the profiling patch? It's a feature I'd
> really like to see in (having it in means fewer local changes in my
> tree when I'm testing the speed of something!).
Interesting timing, I was just looking over the same thing.
My take is:
Part 1: ``(gdb) maint set moncontrol {on,off}''
A home for the command doco (gdb.texinfo) has been created.
The necessary framework (maint set) has been added along with the
function to correctly implement a boolean command. Note:
http://sources.redhat.com/gdb/ari/#var_boolean
The command should always be present but the call should be wrapped in a
check that the function exits. The function moncontrol() is in both the
libc and libc_p libraries (at least on correctly implemented systems :-)
so this is correct.
Part 2: Add the --<what-was-that-profile-option>
Which adds the compile/link -gp flag.
Eli's comment that you don't need to link with -gp is correct.
Perhaphs the <what-was-that-profile-option> should let the user control
the compile and link flags.
Don't remember where the doco for this goes.
Part 3: (new) ``(gdb) maint set monstartup <lowpc> <highpc>
Can anyone think why we shouldn't make this visible. Of course the user
will need to somehow obtain the magic addresses from somewhere.
Same as moncontrol().
Andrew
next prev parent reply other threads:[~2002-01-21 3:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-20 18:03 Daniel Jacobowitz
2002-01-20 19:27 ` Andrew Cagney [this message]
2002-01-31 15:00 ` Michael Snyder
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=3C4B8A6B.30407@cygnus.com \
--to=ac131313@cygnus.com \
--cc=drow@mvista.com \
--cc=gdb@sources.redhat.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