diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-01-22 23:50:13 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-01-22 23:50:13 +0000 |
commit | e7ba9c658425d264adc54dfcf0b654cfc3df8f14 (patch) | |
tree | ab87322e623c7e890ccd109b076794379e566206 /gdb/doc/gdb.texinfo | |
parent | f181ce62238741e31fc422d5096c8cc277a7613c (diff) | |
download | gdb-e7ba9c658425d264adc54dfcf0b654cfc3df8f14.zip gdb-e7ba9c658425d264adc54dfcf0b654cfc3df8f14.tar.gz gdb-e7ba9c658425d264adc54dfcf0b654cfc3df8f14.tar.bz2 |
* gdb.texinfo (Maintenance Commands): Add "maint set profile"
and "maint show profile".
Diffstat (limited to 'gdb/doc/gdb.texinfo')
-rw-r--r-- | gdb/doc/gdb.texinfo | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 36cb37f..77360d0 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 |