This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: profiling gdb


>>>>> "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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]