[mod.computers.vax] monitoring CPU usage inside a program

SYSRUTH@UTORPHYS.BITNET (10/29/86)

Does anybody out there know of a VMS utility (I can't find anything obvious)
or a program they have written, which will monitor an executing image and
produce statistics (e.g. histograms) on how much time it is spending on
which portions of the program? CRAY, CYBER, IBM and probably others all have
something like this. I can't find anything either in VMS or the Fortran
debugger which will produce something useful. Show proc/continuous will show
you the PC, but you have to store the output and then match it up with a
map of the program, which is a lot of work and may not produce very good
results.
                        Thanks in advance to all who answer.

Ruth Milner
VAX Systems Manager
Physics/Astronomy VAX Group
University of Toronto

oberman@LLL-ICDC.ARPA ("Oberman, Kevin") (10/31/86)

>Does anybody out there know of a VMS utility (I can't find anything obvious) or
>a program they have written, which will monitor an executing image and produce
>statistics (e.g. histograms) on how much time it is spending on which portions
>of the program? CRAY, CYBER, IBM and probably others all have something like
>this. I can't find anything either in VMS or the Fortran debugger which will
>produce something useful. Show proc/continuous will show you the PC, but you
>have to store the output and then match it up with a map of the program, which
>is a lot of work and may not produce very good results. 

This functionality is not available from any standard VMS utility. It must be
purchased as a layered product. In fact, there are 2 packages to do what you
are looking for. PCA (Performance Coverage Analyzer) does exectly what you are
looking for. It is fairly easy to use with great flexibility on what data is
collected and how it is reported.

SPM (System Performance Monitor) can also do this, though with less flexibility.
It can also provide a great deal of system wide information for tuning and
planning. The system analysis portions are the primary functions and SPM does
these things better than the image monitoring.

						R. Kevin Oberman
						LLNL
						arpa: oberman@lll-icdc.arpa
						(415) 422-6955
------

blinn@furilo.DEC.COM (Dr. Tom @ MRO3-3 pole T14, 297-5562) (10/31/86)

Ruth Milner, VAX Systems Manager, Physics/Astronomy VAX Group, 
University of Toronto, writes:

> Does anybody out there know of a VMS utility (I can't find anything obvious)
> or a program they have written, which will monitor an executing image and
> produce statistics (e.g. histograms) on how much time it is spending on
> which portions of the program? 

The VAX Performance and Coverage Analyzer (PCA) does what you're looking
for.  It's a VMS layered product available for all VAX and microVAX systems
running VMS, and works with any language that supports the VAX Debugger.

It has two components, one of which is linked with your program to gather
data during the program's execution, and the other of which generates the
performance and coverage reports.  You can get information out in several
formats.

The VAX PCA is described by SPD # 26.76.nn, and is model number Q*119.

Tom Blinn
Volume Operations
Digital Equipment Corporation
Marlboro, MA 01752

herzlich@NGP.UTEXAS.EDU (Larry Herzlich) (11/01/86)

>From: SYSRUTH@UTORPHYS.BITNET
>Subject: monitoring CPU usage inside a program
>Date: 29 Oct 86 17:01:00 GMT

>Does anybody out there know of a VMS utility (I can't find anything obvious)
>or a program they have written, which will monitor an executing image and
>produce statistics (e.g. histograms) on how much time it is spending on
>which portions of the program? 
>
>Ruth Milner

Will a DEC layered product work?
  
Have you heard of the PCA (Performance and Coverage Analyzer) from DEC.  It's
an interesting little tool which I think will do the trick.  DEC uses it 
internally. They've managed to fix problems in their own software and 
improve performance for sections of code that were spending too much time
in one area.  Two examples that were discussed at Spring DECUS 
included the Ada compiler and the TPU editor on the uVAX.  In the TPU
problem, they were able to find a bug in the code and for the Ada compiler
they were able to fix a problem with excessive page faulting.

We would probably buy the product for our systems except our users are
novice and don't care about performance.  We really don't have any 
people developing applications that need fine tuning.  

-- Larry Herzlich
   University of Texas at Austin
   Computation Center, User Services Division
   ..seismo!ut-sally!ut-ngp!herzlich
   CC.LHerzlich@a20.cc.utexas.edu
 

SCHOMAKE@HNYKUN53.BITNET (11/03/86)

[]
>Does anybody out there know of a VMS utility (I can't find anything obvious) or
>a program they have written, which will monitor an executing image and produce
>statistics (e.g. histograms) on how much time it is spending on which portions
>of the program? ......

Try Decus's VAX-77 named "INFO: Performance Measurement Tool to Display Top CPU
Procedure Within Program". I haven't used it myself but the description
seems to fit your requirements.
                 *
               ^^^^^
      KKKKKUUUUNNNNN
      KKK  UUUU NNNN           Lambert Schomaker
      K    UUUU  NNN           SCHOMAKER@HNYKUN53.BITNET
      KKK  UUUU   NN           Nijmegen, The Netherlands.
      KKKKK UU     N