-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
ddeclerck
committed
Apr 9, 2024
1 parent
14f0d09
commit 7b69950
Showing
21 changed files
with
1,894 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,23 @@ | ||
|
||
2024-03-17 Fabrice Le Fessant <[email protected]> | ||
Emilien Lemaire <[email protected]> | ||
|
||
* 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 | ||
|
||
2024-02-19 Boris Eng <[email protected]> | ||
|
||
* parser.y (screen_value_clause): replaced basic literals by literals | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.