UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: printfChapter 2
Unix Commands
Next: Reference: prs
 

prof

/usr/ccs/bin/prof [options] [object_file]

Display the profile data for an object file. The file's symbol table is compared with profile file mon.out (created by programs compiled with cc -p). Choose only one of the sort options -a, -c, -n, or -t . See also gprof and lprof.

Options

-a

List output by symbol address.

-c

List output by decreasing number of calls.

-C

Demangle C++ symbol names. Solaris only.

-g

Include nonglobal (static) function symbols (invalid with -l).

-h

Suppress the report heading.

-l

Exclude nonglobal function symbols (the default). Invalid with -g.

-mpf

Use pf as the input profile file instead of mon.out.

-n

List by symbol name.

-o

Show addresses in octal (invalid with -x).

-s

Print a summary on standard error.

-t

List by decreasing total time percentage (the default).

-V

Print version information on standard error.

-x

Show addresses in hexadecimal (invalid with -o).

-z

Include zero usage calls.


Previous: Reference: printfUNIX in a Nutshell: System V EditionNext: Reference: prs
Reference: printfBook IndexReference: prs

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