How the run-time system treats the time spent in a called COBOL program that has been compiled with profiling enabled (a profiled
program) depends on the value of the
profile_behavior run-time tunable. You specify this tunable when you run the program or the application that you want to be profiled.
The tunable has valid values between 0-3:
- If the
profile_behavior run-time tunable is set to 0 (the default), then time spent in a profiled called program is recorded both in the called program
and in the calling program, and time is recorded as CPU time (that is, the user + system time).
- If the
profile_behavior run-time tunable is set to 1, then time spent in a profiled called program is recorded only in the called program, and time
is recorded as CPU time (that is, the user + system time).
- If the
profile_behavior run-time tunable is set to 2, then time spent in a profiled called program is recorded both in the called program and in
the calling program, and time is recorded as elapsed time; otherwise known as real time or wall-clock time.
- If the
profile_behavior run-time tunable is set to 3, then time spent in a profiled called program is recorded only in the called program, and time
is recorded as elapsed time; otherwise known as real time or wall-clock time.