Where and when does PROFILER collect statistics?
Under NATURAL 2.1 and NATURAL 2.2.0 through 2.2.4, if a session is active for a given NATURAL user, the NATURAL Dispatcher passes control to a PROFILER assembler program, which accumulates statistics for each executable statement. Under NATURAL 2.25 and above, the PROFILER assembler program responsible for collecting statistics is invoked by the NATURAL Debugging Facility for each executable statement. The PROFILER assembler program accumulates statistics in a GETMAINed area for non-CICS users and in the NATURAL thread for CICS users. The assembler program periodically writes records to the FUSER file where PROFILER is installed or to a separate ADABAS file with the same layout (FDT) as the FUSER file.