From 55b0ce4403e29e5c5295bc26024281c62e10ca3c Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 29 Sep 2022 13:12:37 +0100 Subject: [PATCH] Add -B to the help output from gprof, and add suitable documentation. PR 29627 * gprof.c (usage): Add -B. * gprof.texi (synopsis): Add -B. (Output Options): Add entry for -B. --- gprof/ChangeLog | 7 +++++++ gprof/gprof.c | 2 +- gprof/gprof.texi | 5 ++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gprof/ChangeLog b/gprof/ChangeLog index cf11b98e812..69fed44e3a4 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,10 @@ +2022-09-29 Nick Clifton + + PR 29627 + * gprof.c (usage): Add -B. + * gprof.texi (synopsis): Add -B. + (Output Options): Add entry for -B. + 2022-07-08 Nick Clifton * 2.39 branch created. diff --git a/gprof/gprof.c b/gprof/gprof.c index 6ed88ff4776..9392575f747 100644 --- a/gprof/gprof.c +++ b/gprof/gprof.c @@ -160,7 +160,7 @@ static void usage (FILE *stream, int status) { fprintf (stream, _("\ -Usage: %s [-[abcDhilLrsTvwxyz]] [-[ACeEfFJnNOpPqQRStZ][name]] [-I dirs]\n\ +Usage: %s [-[abcDhilLrsTvwxyz]] [-[ABCeEfFJnNOpPqQRStZ][name]] [-I dirs]\n\ [-d[num]] [-k from/to] [-m min-count] [-t table-length]\n\ [--[no-]annotated-source[=name]] [--[no-]exec-counts[=name]]\n\ [--[no-]flat-profile[=name]] [--[no-]graph[=name]]\n\ diff --git a/gprof/gprof.texi b/gprof/gprof.texi index 1b6cae93d8f..7cb4c957c12 100644 --- a/gprof/gprof.texi +++ b/gprof/gprof.texi @@ -110,7 +110,7 @@ in the section entitled ``GNU Free Documentation License''. @smallexample @c man begin SYNOPSIS -gprof [ -[abcDhilLrsTvwxyz] ] [ -[ACeEfFJnNOpPqQRStZ][@var{name}] ] +gprof [ -[abcDhilLrsTvwxyz] ] [ -[ABCeEfFJnNOpPqQRStZ][@var{name}] ] [ -I @var{dirs} ] [ -d[@var{num}] ] [ -k @var{from/to} ] [ -m @var{min-count} ] [ -R @var{map_file} ] [ -t @var{table-length} ] [ --[no-]annotated-source[=@var{name}] ] @@ -489,6 +489,9 @@ verbose blurbs that try to explain the meaning of all of the fields in the tables. This is useful if you intend to print out the output, or are tired of seeing the blurbs. +@item -B +The @samp{-B} option causes @code{gprof} to print the call graph analysis. + @item -C[@var{symspec}] @itemx --exec-counts[=@var{symspec}] The @samp{-C} option causes @code{gprof} to -- 2.30.2