gprof — Display Call-graph Profile Data


/usr/ccs/bin/gprof [-abcCDlsz] [-e function-name] [-E function-name] 
  [-f function-name] [-F function-name] [image-file 
  [profile-file...]] [-n number-of-functions] 


gprof produces an execution profile of a program. The effect of called routines is incorporated in the profile of each caller. The profile data is taken from the call-graph profile file that is created by programs compiled with the -xpg option of cc(1), or by the -pg option with other compilers, or by setting the LD_PROFILE environment variable for shared objects. See These compiler options also link in versions of the library routines that are compiled for profiling. The symbol table in the executable image ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.