-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add -fprof option to profile in time to CSV file
Initial work by Emilien Lemaire <[email protected]> Additional features: * Do not check for enter/exit section: instead, sum time from paragraphs * Support for modules, CALL and ENTRY points * Support for recursive calls * Allocate virtual stack on demand instead of statically * Correct handling of EXIT PARAGRAPH code with 'goto' * Prevent CANCEL from dlclose a module during profiling * Customize CSV result file with COB_PROF_FORMAT * Customize CSV filename using $b/$f/$d/$t * Add some tests for RECURSIVE on PROGRAM-ID
- Loading branch information
Showing
19 changed files
with
1,866 additions
and
120 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.