One dynamic measurement which is easy to collect is the number of times which each subprogram is called. An initial package design and specification to support the collection of this data might be as follows. Simple instrumentation support package. Fintan Culwin, v0.1, Jan 1996. Log file is open for writing.
Log file is open for writing.
Details of exit have been written on the log file. Log file is open. Log file has been closed. To use the package the program being instrumented should call the StartInstrumentation subprogram as its first action and StopInstrumentation as its last action. When StartInstrumentation is called it will derive a, hopefully unique, filename from the program name supplied by appending an integer value.