[PATCH] MI: new timing command
Nick Roberts
nickrob@snap.net.nz
Mon Jan 1 04:18:00 GMT 2007
> > + Toggle the printing of the wallclock, user and system times for an MI
> > + command as a field in its output. Ã,A (BThis command is to help frontend
> > + developers optimize the performance of their code. Ã,A (B
>
> I though it's to help gdb developers to optimize performance of
> their code ;-)
I was thinking of frontend developers as gdb developers would presumably use
profiling but, hey, I'm making it up as I go along and if it proves useful
for developing GDB too we can add that.
> At least when gdb takes a second for list frames,
> there's nothing I can do in a frontend ;-)
Well, for example, you can see the time that a command like -stack-list-frames
takes and decide whether to cap the number of frames and what time that saves.
> > No argument is
> > + equivalent to @samp{yes}.
>
> I'd suggest to say that this command may return error if
> timing is not available. Otherwise, frontend authors might
> not even think this command can fail, and when it fails,
> user will see completely buffling error message.
Yes, I'll add this if I get approval for getrusage.
--
Nick http://www.inet.net.nz/~nickrob
More information about the Gdb-patches
mailing list