aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2007-02-02 23:11:34 +0000
committerNick Roberts <nickrob@snap.net.nz>2007-02-02 23:11:34 +0000
commita4eefcd8528d9ddbd94e8c250dc889a834c2f78e (patch)
tree8ac9cb7f157f004f65ad08f0fad9af6220dc6da3 /gdb
parent61376837da3f7dab95ae8c63391af67f281c9144 (diff)
downloadgdb-a4eefcd8528d9ddbd94e8c250dc889a834c2f78e.zip
gdb-a4eefcd8528d9ddbd94e8c250dc889a834c2f78e.tar.gz
gdb-a4eefcd8528d9ddbd94e8c250dc889a834c2f78e.tar.bz2
(GDB/MI Miscellaneous Commands): Describe the new
command -enable-timings.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/doc/gdb.texinfo44
1 files changed, 44 insertions, 0 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 33a76f8..01eb8fa 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -21508,6 +21508,50 @@ The corresponding @value{GDBN} command is @samp{show inferior-tty}.
(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