Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!uwvax!oddjob!hao!ames!sdcsvax!ucbvax!GRIN2.BITNET!MCGUIRE
From: MCGUIRE@GRIN2.BITNET
Newsgroups: comp.os.vms
Subject: RE: process counting package
Message-ID: <8707230758.AA19172@ucbvax.Berkeley.EDU>
Date: Wed, 22-Jul-87 16:19:00 EDT
Article-I.D.: ucbvax.8707230758.AA19172
Posted: Wed Jul 22 16:19:00 1987
Date-Received: Sat, 25-Jul-87 04:59:14 EDT
Sender: daemon@ucbvax.BERKELEY.EDU
Distribution: world
Organization: The ARPA Internet
Lines: 39

> Date:         Fri, 17 Jul 87 15:32 CST
> From:         FSIMMONS%UMNDUL.BITNET@wiscvm.wisc.edu
> Subject:      process counting package
>
> Does there exist within VMS the capability to count ther number of times a
> compiler is invoked for instance? I am trying to ascertain which is the most
> frequently used of our 4 statistics packages on our 750.

Yes, there is a way to count the number of invocations of an executable
image.  There are two parts to this operation: data collection and report.

Data collection is done by instructing VMS to log each image activation to
the system accounting file (often SYS$MANAGER:ACCOUNTNG.DAT).  If you wish
to log only particular images, install them as known images, including the
ACCOUNTING qualifier.  For example, to dynamically begin logging
SYS$SYSTEM:FORTRAN.EXE, enable CMKRNL privilege and type:
  $ INSTALL :== $INSTALL/COMMAND_MODE
  $ INSTALL CREATE/ACCOUNTING FORTRAN
(If FORTRAN is already installed, you can REPLACE/ACCOUNTING FORTRAN.)  To
log an image routinely, put the command in SYSTARTUP.COM.  See the Install
Utility Reference Manual for more information.

You can also log all images instead of selected ones.  On most VMS systems,
this incurs significant overhead in the areas of system performance and
disk space.  We purchased our systems with the intent that they support
both our user workload and image logging and other monitoring operations.
To dynamically begin logging all images, enable OPER privilege and type:
  $ SET ACCOUNTING/ENABLE=IMAGE
To log all images routinely, put the command in SYSTARTUP.COM.  See the DCL
Dictionary for more information.

To report information previously logged in an accounting file, you use the
Accounting Utility.  For example, to count the number of times the FORTRAN
compiler was invoked while logging was enabled for the current accounting
file, enable READALL privilege and type:
  $ ACCOUNTING/SUMMARY=IMAGE/IMAGE=FORTRAN
See the Accounting Utility Reference Manual for more information.

Ed