Feature #12023
implement conversion and stubs for SHOW-STATS
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:
0%
billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
reviewer:
production:
No
env_name:
topics:
History
#1 Updated by Greg Shah 15 days ago
Convert the SHOW-STATS statement as a runtime stub¶
Project: Base Language
Problem¶
SHOW-STATS [CLEAR] writes procedure call and database access statistics to the client.mon file in OpenEdge. It is a diagnostic statement and its output has no meaning in FWD, where JMX serves the same purpose.
FWD parses the statement (KW_SHOW_ST, with the optional CLEAR), but no conversion rule handles it. It appears only in internal_4gl_state_usage in common-progress.rules, which drives a report, and the gap marking in rules/gaps/lang_stmts.rules records it as None / None. So a program which contains it does not have it in the converted code in any defined way.
A program that uses it should convert and run unchanged, with the statement doing nothing at run time.
Work¶
- Establish what conversion currently emits for
SHOW-STATSandSHOW-STATS CLEAR: whether the statement is dropped silently, left as a comment, or breaks the conversion. - Convert both forms to a call to a runtime method which does nothing except, at most, log once that the statement is not supported. Follow the existing pattern for statements of this kind, such as
SAVE CACHE(rules/convert/database_access.rules). - Make sure the call compiles and runs in every block context the statement can appear in, including inside a trigger and a loop.
- Update the gap marking to Full conversion and Stubs at runtime.
Testcases¶
SHOW-STATS.andSHOW-STATS CLEAR.as statements, alone and inside aREPEATloop and anONtrigger, converting and running without error.