* gdb.texinfo (Maintenance Commands): Add "maint set profile"
authorDaniel Jacobowitz <drow@false.org>
Wed, 22 Jan 2003 23:50:13 +0000 (23:50 +0000)
committerDaniel Jacobowitz <drow@false.org>
Wed, 22 Jan 2003 23:50:13 +0000 (23:50 +0000)
and "maint show profile".

gdb/doc/ChangeLog
gdb/doc/gdb.texinfo

index 14d64aa6a5af27b027b4c0e7e009a14685c5bc7a..b92461df9b5ee370dd49eff7fbffb52b9a9de1b7 100644 (file)
@@ -1,3 +1,8 @@
+2003-01-22  Daniel Jacobowitz  <drow@mvista.com>
+
+       * gdb.texinfo (Maintenance Commands): Add "maint set profile"
+       and "maint show profile".
+
 2003-01-16  Michael Chastain  <mec@shout.net>
 
        * gdb.texinfo (Installing GDB): Warn against
index 36cb37f91f85de6e14cc868987453cad282a4d46..77360d0cde3f2a638dfc991f3c87a093093a75ba 100644 (file)
@@ -14458,6 +14458,24 @@ cooked-registers} includes the (cooked) value of all registers.
 
 Takes an optional file parameter.
 
+@kindex maint set profile
+@kindex maint show profile
+@cindex profiling GDB
+@item maint set profile
+@itemx maint show profile
+Control profiling of @value{GDBN}.
+
+Profiling will be disabled until you use the @samp{maint set profile}
+command to enable it.  When you enable profiling, the system will begin
+collecting timing and execution count data; when you disable profiling or
+exit @value{GDBN}, the results will be written to a log file.  Remember that
+if you use profiling, @value{GDBN} will overwrite the profiling log file
+(often called @file{gmon.out}).  If you have a record of important profiling
+data in a @file{gmon.out} file, be sure to move it to a safe location.
+
+Configuring with @samp{--enable-profiling} arranges for @value{GDBN} to be
+compiled with the @samp{-pg} compiler option. 
+
 @end table
 
 
This page took 0.038018 seconds and 4 git commands to generate.