profiling gdb
J.T. Conklin
jtc@redback.com
Wed Oct 27 13:44:00 GMT 1999
>>>>> "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
More information about the Gdb-patches
mailing list