diff options
Diffstat (limited to 'usr.bin/gprof/gprof.1')
-rw-r--r-- | usr.bin/gprof/gprof.1 | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/usr.bin/gprof/gprof.1 b/usr.bin/gprof/gprof.1 index 19746d535d7..b3b7ea85b41 100644 --- a/usr.bin/gprof/gprof.1 +++ b/usr.bin/gprof/gprof.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: gprof.1,v 1.8 1998/09/07 16:44:33 aaron Exp $ +.\" $OpenBSD: gprof.1,v 1.9 1998/09/26 19:54:50 aaron Exp $ .\" $NetBSD: gprof.1,v 1.6 1995/11/21 22:24:55 jtc Exp $ .\" .\" Copyright (c) 1983, 1990, 1993 @@ -45,7 +45,7 @@ .Op options .Op Ar a.out Op Ar gmon.out ... .Sh DESCRIPTION -.Nm Gprof +.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 @@ -62,7 +62,7 @@ The .Fl pg option also links in versions of the library routines that are compiled for profiling. -.Nm Gprof +.Nm gprof reads the given object file (the default is .Pa a.out) and establishes the relation between its symbol table @@ -73,7 +73,7 @@ the .Nm gprof output shows the sum of the profile information in the given profile files. .Pp -.Nm Gprof +.Nm gprof calculates the amount of time spent in each routine. Next, these times are propagated along the edges of the call graph. Cycles are discovered, and calls into a cycle are made to share the time @@ -203,7 +203,9 @@ A profile file is produced that represents the sum of the profile information in all the specified profile files. This summary profile file may be given to later -executions of gprof (probably also with a +executions of +.Nm gprof +(probably also with a .Fl s ) to accumulate profile data across several runs of an .Pa a.out @@ -229,17 +231,17 @@ Otherwise, profiling information is placed in the file .Sh FILES .Bl -tag -width gmon.sum -compact .It Pa a.out -The namelist and text space. +namelist and text space .It Pa gmon.out -Dynamic call graph and profile. +dynamic call graph and profile .It Pa gmon.sum -Summarized dynamic call graph and profile. +summarized dynamic call graph and profile .El .Sh SEE ALSO -.Xr moncontrol 3 , -.Xr profil 2 , .Xr cc 1 , -.Xr prof 1 +.Xr prof 1 , +.Xr profil 2 , +.Xr moncontrol 3 .Rs .%T "An Execution Profiler for Modular Programs" .%A S. Graham |