smonitor.3c (2010 09)

s
smonitor(3C) smonitor(3C)
LD_PROFILE=""
libgprof.so does not set up the buffers to collect sampling information. It is expected that
smonitor() will be called explicitly to collect the sampling information. So it is the ideal case to
call the smonitor() explicitly.
LD_PROFILE=ALL
libgprof.so sets up the sampling buffer for all the load modules and starts
sprofil() to col-
lect the sampling information. Now if
smonitor() is invoked explicitly,
sprofil() is stopped,
the buffer allocated by
libgprof.so
is deallocated, and all the sampling information collected
prior to calling
smonitor() is lost. smonitor()
uses the buffer passed as an argument and
starts
sprofil() again.
LD_PROFILE=ldm1:ldm2
libgprof.so sets up the sampling buffer for the load modules ldm1 and ldm2 and starts
spro-
fil() to collect the sampling information. Now if
smonitor() is invoked explicitly, spro-
fil() is stopped, the buffer allocated by
libgprof.so is deallocated, and all the sampling infor-
mation collected prior to calling
smonitor() is lost.
smonitor() uses the buffer passed as an
argument and starts
sprofil() again.
If
LD_PROFILE is not set, smonitor() behaves as though
LD_PROFILE=ALL.
FILES
/usr/lib/hpux32/libgprof.so
/usr/lib/hpux64/libgprof.so
SEE ALSO
cc(1), gprof(1), sprofil(2).
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010