From d090ad42260c293503ee5f02a396a78dea88a28d Mon Sep 17 00:00:00 2001 From: drow Date: Wed, 22 Jan 2003 23:50:13 +0000 Subject: [PATCH] * gdb.texinfo (Maintenance Commands): Add "maint set profile" and "maint show profile". --- gdb/doc/ChangeLog | 5 +++++ gdb/doc/gdb.texinfo | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 14d64aa6a5..b92461df9b 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2003-01-22 Daniel Jacobowitz + + * gdb.texinfo (Maintenance Commands): Add "maint set profile" + and "maint show profile". + 2003-01-16 Michael Chastain * gdb.texinfo (Installing GDB): Warn against diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 36cb37f91f..77360d0cde 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -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 -- 2.11.0