JRT Pascal User's Guide NOT FOR SALE -173- B. Activity analyzer The activity analyzer, Activan, is a facility which monitors the execution of a Pascal program and prints a graph showing the amount of time spent executing each portion of the program. To use Activan, a program must be compiled with the %LTRACE directive or the $L compile switch on. Activan monitors the line numbers as a program executes and keeps counters for the line numbers in the specified range. The range of line numbers to be monitored and the line spacing can be set and changed when the program is running. To run a program with Activan, specify the $A switch when the program is started with the EXEC command: EXEC TEXTPGM $A Before the program begins execution, Activan will request console input to specify the line range to be monitored and the line spacing. When those parameters have been entered, the program execution will begin. If Activan is active when the program terminates, Activan mode is entered so that a final histogram can be printed. While the program is running, it can be interrupted and control returned to Activan by keying in a control-A command. Activan will then request which action is desired: code action ---- ------- C clear the counters to zero H print histogram of activity I initialize the line range and spacing M run the program with Activan monitoring W run the program without Activan Z terminate the program Copy compliments of Merle Schnick APPENDIX B: Activitiy analyzer  program with Activan moni