summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof/gprof.1
diff options
context:
space:
mode:
authorjmz <jmz@FreeBSD.org>1999-05-23 00:37:56 +0000
committerjmz <jmz@FreeBSD.org>1999-05-23 00:37:56 +0000
commit664ece1203712c55ddab8529abd6803ab19e9803 (patch)
tree3ea28e5d6788b0822975dc8e1750d52827e90754 /usr.bin/gprof/gprof.1
parente7d8972c4b2d32d37412c38bf5ae67f4ea5a2a52 (diff)
downloadFreeBSD-src-664ece1203712c55ddab8529abd6803ab19e9803.zip
FreeBSD-src-664ece1203712c55ddab8529abd6803ab19e9803.tar.gz
Construct the profile file name from the name of the executable. A program
compiled with -pg and run will generate a file <executable-filename>.gmon, not gmon.out. PR: bin/8426
Diffstat (limited to 'usr.bin/gprof/gprof.1')
-rw-r--r--usr.bin/gprof/gprof.120
1 files changed, 9 insertions, 11 deletions
diff --git a/usr.bin/gprof/gprof.1 b/usr.bin/gprof/gprof.1
index dc6f369..02eea62 100644
--- a/usr.bin/gprof/gprof.1
+++ b/usr.bin/gprof/gprof.1
@@ -40,15 +40,13 @@
.Sh SYNOPSIS
.Nm gprof
.Op options
-.Op Ar a.out Op Ar gmon.out ...
+.Op Ar a.out Op Ar a.out.gmon ...
.Sh DESCRIPTION
.Nm Gprof
produces an execution profile of C, Pascal, or Fortran77 programs.
The effect of called routines is incorporated in the profile of each caller.
The profile data is taken from the call graph profile file
-.Pf ( Pa gmon.out
-default) which is created by programs
-that are compiled with the
+which is created by programs that are compiled with the
.Fl pg
option of
.Xr cc 1 ,
@@ -63,8 +61,10 @@ that are compiled for profiling.
reads the given object file (the default is
.Pa a.out)
and establishes the relation between it's symbol table
-and the call graph profile from
-.Pa gmon.out .
+and the call graph profile. The default graph profile file name is the name
+of the executable with the suffix
+.Pa .gmon
+appended.
If more than one profile file is specified,
the
.Nm gprof
@@ -231,10 +231,10 @@ This is useful with the
option for discovering which routines were never called.
.El
.Sh FILES
-.Bl -tag -width gmon.sum -compact
+.Bl -tag -width a.out.gmon -compact
.It Pa a.out
The namelist and text space.
-.It Pa gmon.out
+.It Pa a.out.gmon
Dynamic call graph and profile.
.It Pa gmon.sum
Summarized dynamic call graph and profile.
@@ -295,6 +295,4 @@ the execution of the profiling routine, in which case all is lost.
The profiled program must call
.Xr exit 3
or return normally for the profiling information to be saved
-in the
-.Pa gmon.out
-file.
+in the graph profile file.
OpenPOWER on IntegriCloud