This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Regression for GDB global --statistics [Re: [doc RFA] New commands: mt set per-command on|off]
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Doug Evans <dje at google dot com>
- Cc: eliz at gnu dot org, gdb-patches at sourceware dot org
- Date: Mon, 30 Jun 2014 19:13:33 +0200
- Subject: Regression for GDB global --statistics [Re: [doc RFA] New commands: mt set per-command on|off]
- Authentication-results: sourceware.org; auth=none
- References: <yjt2ip4s5mbu dot fsf at ruffy2 dot mtv dot corp dot google dot com>
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