You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cobc:
* parser.y: generate calls to "cob_prof_function_call" in the parsetree when profiling is unabled, when entering/leaving profiled blocks
* flag.def: add `-fprof` to enable profiling
* tree.h: add a flags field to cb_goto, add profiling fields to cb_program, add cb_prof_call enum and export cb_build_prof_call and cb_prof_procedure_fivision functions
* tree.c (cb_build_program): initialize the new profiling fields of the cb_program structure
* tree.c (cb_build_goto): add a "flags" argument (stored in the cb_program structure)
* typeck.c (cb_emit_goto): add a "flags" argument (passed to cb_build_goto)
* codegen.c: handle profiling code generation under the cb_flag_prof guard
libcob:
* Makefile.am: add `profiling.c` to sources
* profiling.c: implement profiling functions (time spent in each procedure of the program)
* common.c: add 4 environments variables COB_PROF_FILE, COB_PROF_MAX_DEPTH,COB_PROF_ENABLE and COB_PROF_FORMAT
* common.c (cob_expand_env_string): add $b (executable basename), $f (executable filename), $d (date in yyyymmdd) and $t (time in hhmmss)
* common.c (cob_set_main_argv0): extracted from cob_init
* fileio.c (cob_path_to_absolute): extracted from insert and cob_set_main_argv0
config:
* runtime.cfg: add COB_PROF_FILE
0 commit comments