Installation guide

G.8.5 PC-Sample Mode of prof Command
The prof command’s pc-sampling mode now supports profiling the shared
libraries used by a program. Linking a call-shared program with the cc
command’s -p switch causes the resulting program to profile both the
call-shared executable file and all the shared libraries. The following
command displays a combined profile:
# prof -all
New -all, -incobj, -excobj, and -stride switches for the PROFFLAGS
environment variable enable you to request per-procedure profiling of the
shared libraries or to select particular libraries to profile.
The related enhancements are:
Extended application programming interfaces (APIs) to monitor(),
monstartup(), and profil()
Use of 32-bit pc-sampling counters instead of 16-bit for cc -p and cc
-pg profiling (gprof), except for calls to the traditional monitor() API.
Improved reliability in profiling multithreaded programs, and reference
page guidelines for use of monitor_signal() with threads.
prof and gprof checking.
Profiling report formats are improved.
See prof(1) and monitor(3) for further information.
G.8.5.1 ULTRIX Migration Issues
There are no ULTRIX migration issues.
G.8.6 atom and prof Commands and Threads
Both of the following atom and prof commands now profile the shared
libraries used by a program:
# atom -tool pixie -all
# prof -pixie -all
The threads environment for atom also makes the pixie tool thread-safe,
though per-thread counts are not recorded.
Additionally, there are new file formats for .Addrs and .Counts files.
See atom (1), prof (1), and pixie (5) for further information.
Migration from ULTRIX Version 4.5 to DIGITAL UNIX Version 4.0B G–13