Monitor man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

monitor(3C)							   monitor(3C)

       monitor() - prepare execution profile

       An  executable program created by automatically includes calls for with
       default parameters; need not be called explicitly except to  gain  fine
       control over profiling.

       is  an  interface  to profil(2).	 lowpc and highpc are the addresses of
       two functions; buffer is the address of a (user-supplied) array of buf‐
       size  WORDs  (defined  in  the  header  file).  The address should have
       proper alignment to be cast to type and in

       arranges to record in the buffer a histogram  of	 periodically  sampled
       values  of the program counter, and of counts of calls of certain func‐
       tions.  The lowest address sampled is that of lowpc and the highest  is
       just  below  highpc.   lowpc  must not equal 0 for this use of monitor.
       Not more than nfunc call counts can be kept; only  calls	 of  functions
       compiled with the profiling option of are recorded.  (The C Library and
       Math Library supplied when is used also have call counts recorded.)

       For results to be significant, especially where there are small,	 heav‐
       ily  used  routines,  it is suggested that the buffer be no more than a
       few times smaller than the range of locations sampled.

       To profile the entire program, it is sufficient to use


       etext lies just above all the program text (see end(3C)).

       To stop execution monitoring and write the results on file use

       prof(1) can then be used to examine the results.

       cc_bundled(1), prof(1), profil(2), end(3C).


List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net