This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: profiling gdb
- To: tromey at cygnus dot com
- Subject: Re: profiling gdb
- From: jtc at redback dot com (J.T. Conklin)
- Date: 27 Oct 1999 13:43:45 -0700
- Cc: gdb-patches at sourceware dot cygnus dot com
- References: <87zox4k129.fsf@cygnus.com>
- Reply-To: jtc at redback dot com
>>>>> "Tom" == Tom Tromey <tromey@cygnus.com> writes:
Tom> Lately I've had occasion to profile parts of gdb. I wrote the
Tom> appended patch, which adds a command to let me enable and disable
Tom> profiling. That way I can profile parts of gdb without getting
Tom> misleading data about things I don't care about.
I did pretty much the same thing when I was trying to determine why
some my user defined functions were so slow.
Tom> This patch isn't really complete. At the very least it needs a
Tom> configure option to define ENABLE_PROFILE. I'm posting it to get
Tom> feedback. If this isn't worthwhile, I'll just keep it as my own
Tom> private hack.
At the very least, if this gets integrated there will be no need for
anyone else to (re-)implement it.
You include <sys/gmon.h>, perhaps for a moncontrol() declaration. But
not all systems have that header, and those who do may not declare
moncontrol().
--jtc
--
J.T. Conklin
RedBack Networks