This is the mail archive of the gdb-patches@sourceware.org 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]
Other format: [Raw text]

Regression for GDB global --statistics [Re: [doc RFA] New commands: mt set per-command on|off]


On Fri, 15 Mar 2013 23:29:09 +0100, Doug Evans wrote:
> This patch adds a new option to display some simple symtab stats
> akin to how "mt time|space 1" work.  For consistency with the
> rest of gdb I named it:
> 
> maint set per-command symtab on|off
> maint show per-command symtab

bd712aed2f88ab824d403c55a212c2be3f41a335 is the first bad commit
commit bd712aed2f88ab824d403c55a212c2be3f41a335
Author: Doug Evans <dje@google.com>
Date:   Thu Mar 21 17:37:30 2013 +0000
        New commands "mt set per-command {space,time,symtab} {on,off}".

before (gdb-7.6):
gdb -nx -q -statistics  </dev/null
Startup time: 0.031000 (cpu), 0.033828 (wall)
Space used: 4005888 (+4005888 during startup)
(gdb) quit

after (gdb-7.7+):
gdb -nx -q -statistics  </dev/null
(gdb) quit

Commands stats work now but no longer the global stats.  Command stats look
differently ("for this command" vs. "during startup"):
echo echo|gdb -nx -q -statistics 
(gdb) Command execution time: 0.000000 (cpu), 0.000008 (wall)
Space used: 4206592 (+0 for this command)
(gdb) quit

It has been found by Miroslav Franc.


Jan


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