Profiler is a facility that enables you to obtain detailed statistics on the run-time performance of a COBOL program. It can be helpful in diagnosing performance related issues in your applications.
This profiling implementation is sometimes known as instrumented profiling. Instrumented profiling means the application is modified to include additional code to record performance information.
To enable profiling in your application, you need to compile the code you wish to profile with the PROFILE Compiler directive, and after executing your program, run the profiling tool to create a report.
Performance statistics are produced in binary format each time the application is run, and so must be converted to a readable format, using the Profiler tool, in order to view them.
Recording performance statistics will degrade application performance, so is not recommended for use in production systems.