summaryrefslogtreecommitdiff
path: root/gprof
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-09-29 13:12:37 +0100
committerNick Clifton <nickc@redhat.com>2022-09-29 13:12:37 +0100
commit55b0ce4403e29e5c5295bc26024281c62e10ca3c (patch)
tree8821880dd72355d2139c94bb99ca1e869381c9fe /gprof
parent1557c9ff815245ae6864f232c4409607635a98d7 (diff)
downloadbinutils-gdb-55b0ce4403e29e5c5295bc26024281c62e10ca3c.tar.gz
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.
Diffstat (limited to 'gprof')
-rw-r--r--gprof/ChangeLog7
-rw-r--r--gprof/gprof.c2
-rw-r--r--gprof/gprof.texi5
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 <nickc@redhat.com>
+
+ PR 29627
+ * gprof.c (usage): Add -B.
+ * gprof.texi (synopsis): Add -B.
+ (Output Options): Add entry for -B.
+
2022-07-08 Nick Clifton <nickc@redhat.com>
* 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