home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: gettxt Chapter 2
UNIX Commands
Next: Reference: grep
 

gprof



gprof

 [

options

] [

objfile

 [

pfile

]]

Solaris 2.0 only. Display call-graph profile data of C programs. Programs compiled with the -pg option of cc (and other compilers) produce a call-graph profile file pfile , whose default name is gmon.out . The specified object file objfile ( a.out by default) contains a symbol table that is read and correlated with pfile . See also prof and lprof

Options

-a

Don't print statically declared functions.

-b

Brief; don't print field descriptions in the profile.

-c

Find the program's static call-graph. Call counts of 0 indicate static-only parents or children.

-e name

Don't print the graph profile entry for the routine name . -e may be repeated.

-E name

Like -e above. In addition, during time computations, omit the time spent in name .

-f name

Print the graph profile entry only for routine name . -f may be repeated.

-F name

Like -f above. In addition, during time computations, use only the times of the printed routines. -F may be repeated, and it overrides -E .

-s

With this option you supply one or more existing pfiles . Sum the information in all specified profile files and send it to a profile file called gmon.sum . Useful for accumulating data across several runs.

-z

Show routines that have zero usage. Useful with -c to find out which routines were never called.


Previous: Reference: gettxt UNIX in a Nutshell: System V Edition Next: Reference: grep
Reference: gettxt Book Index Reference: grep

The UNIX CD Bookshelf Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System