version 1.22, 2011/12/23 17:00:47 |
version 1.23, 2016/09/21 05:57:32 |
|
|
.Nd display call graph profile data |
.Nd display call graph profile data |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm gprof |
.Nm gprof |
.Bk -words |
|
.Op Fl abcsz |
.Op Fl abcsz |
.Op Fl C Ar count |
.Op Fl C Ar count |
.Op Fl E Ar name |
.Op Fl E Ar name |
|
|
.Op Fl f Ar name |
.Op Fl f Ar name |
.Op Fl k Ar from-name to-name |
.Op Fl k Ar from-name to-name |
.Op Ar a.out Op Ar gmon.out ... |
.Op Ar a.out Op Ar gmon.out ... |
.Ek |
|
.Sh DESCRIPTION |
.Sh DESCRIPTION |
.Nm |
.Nm |
produces an execution profile of C, Pascal, or Fortran77 programs. |
produces an execution profile of C, Pascal, or Fortran77 programs. |
|
|
.It Fl E Ar name |
.It Fl E Ar name |
Suppresses the printing of the graph profile entry for routine |
Suppresses the printing of the graph profile entry for routine |
.Ar name |
.Ar name |
(and its descendants) as |
and its descendants, |
.Fl e , |
excluding the time spent in |
above, and also excludes the time spent in |
|
.Ar name |
.Ar name |
(and its descendants) from the total and percentage time computations. |
and its descendants from the total and percentage time computations. |
(For example, |
For example, |
.Fl E |
.Fl E |
.Ar mcount |
.Ar mcount |
.Fl E |
.Fl E |
.Ar mcleanup |
.Ar mcleanup |
is the default.) |
is the default. |
.It Fl e Ar name |
.It Fl e Ar name |
Suppresses the printing of the graph profile entry for routine |
Suppresses the printing of the graph profile entry for routine |
.Ar name |
.Ar name |
and all its descendants |
and its descendants |
(unless they have other ancestors that aren't suppressed). |
(unless they have other ancestors that aren't suppressed). |
More than one |
More than one |
.Fl e |
.Fl e |
|
|
.It Fl F Ar name |
.It Fl F Ar name |
Prints the graph profile entry of only the routine |
Prints the graph profile entry of only the routine |
.Ar name |
.Ar name |
and its descendants (as |
and its descendants, |
.Fl f , |
using only the times of the printed routines |
above) and also uses only the times of the printed routines |
|
in total time and percentage computations. |
in total time and percentage computations. |
More than one |
More than one |
.Fl F |
.Fl F |