From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32180 invoked by alias); 31 Dec 2006 07:50:56 -0000 Received: (qmail 32164 invoked by uid 22791); 31 Dec 2006 07:50:56 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 31 Dec 2006 07:50:50 +0000 Received: from kahikatea.snap.net.nz (p202-124-124-107.snap.net.nz [202.124.124.107]) by viper.snap.net.nz (Postfix) with ESMTP id 0E9923D81E2; Sun, 31 Dec 2006 20:50:48 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 2788CBE447; Sun, 31 Dec 2006 20:46:11 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17815.27329.161503.370934@kahikatea.snap.net.nz> Date: Sun, 31 Dec 2006 07:50:00 -0000 To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] MI: new timing command In-Reply-To: References: <17814.10139.269708.848818@kahikatea.snap.net.nz> X-Mailer: VM 7.19 under Emacs 22.0.92.3 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00395.txt.bz2 > > From: Nick Roberts > > Date: Sat, 30 Dec 2006 21:47:23 +1300 > > > > Here's a patch for timing MI commands e.g. > > Thanks, but where's the documentation to go with it? Here are some docs but I guess it could still all change. -- Nick http://www.inet.net.nz/~nickrob 2006-12-31 Nick Roberts * gdb.texinfo (GDB/MI Miscellaneous Commands): Describe the new command -enable-timings. *** gdb.texinfo 09 Dec 2006 10:52:03 +1300 1.373 --- gdb.texinfo 31 Dec 2006 12:33:02 +1300 *************** The corresponding @value{GDBN} command i *** 21419,21424 **** --- 21419,21468 ---- (gdb) @end smallexample + @subheading The @code{-enable-timings} Command + @findex -enable-timings + + @subheading Synopsis + + @smallexample + -enable-timings [yes | no] + @end smallexample + + Toggle the printing of the wallclock, user and system times for an MI + command as a field in its output. This command is to help frontend + developers optimize the performance of their code. No argument is + equivalent to @samp{yes}. + + @subheading @value{GDBN} Command + + No equivalent. + + @subheading Example + + @smallexample + (gdb) + -enable-timings + ^done + (gdb) + -break-insert main + ^done,bkpt=@{number="1",type="breakpoint",disp="keep",enabled="y", + addr="0x080484ed",func="main",file="myprog.c", + fullname="/home/nickrob/myprog.c",line="73",times="0"@}, + time=@{wallclock="0.05185",user="0.00800",system="0.00000"@} + (gdb) + -enable-timings no + ^done + (gdb) + -exec-run + ^running + (gdb) + *stopped,reason="breakpoint-hit",bkptno="1",thread-id="0", + frame=@{addr="0x080484ed",func="main",args=[@{name="argc",value="1"@}, + @{name="argv",value="0xbfb60364"@}],file="myprog.c", + fullname="/home/nickrob/myprog.c",line="73"@} + (gdb) + @end smallexample + @node Annotations @chapter @value{GDBN} Annotations