working with the static code metrics report -凯发k8网页登录

main content

working with the static code metrics report

you can use the information in the static code metrics report to assess the generated code and make model changes before code implementation in your target ide.

before starting, familiarize yourself with potential code limitations of your ide. for example, some ides have limits on the number of variables or lines of code in a function block.

for detailed instructions on generating the report, see .

workflow for static code metrics report

this workflow is the basic workflow for using the static code metrics report with your model.

report contents

the static code metrics report is divided into these sections:

  • file information: reports high-level information about generated files, such as lines and lines of code.

  • global variables: reports information about global variables defined in the generated code.

  • global constants: reports information about global constants defined in the generated code.

  • function block information: reports a table of metrics for each function block generated from your model.

function block information

you can use the information in the function block information table to assess the generated code before implementation in your ide. the leftmost column of the table lists function blocks with hyperlinks. clicking a function block name leads you to the function block location in the generated code. you can then trace from the code to the model. for more information, see .

网站地图