Main Content

Generate static code metrics report

Static code metrics report

Description

App Configuration Pane: Debugging

Configuration Objects: coder.EmbeddedCodeConfig

Static code metrics report.

To open a code metrics report, click the Code Metrics link on the Summary tab of the code generation report.

See Generating a Static Code Metrics Report for Code Generated from MATLAB Code (Embedded Coder).

Dependencies

The code generator produces a static code metrics report only if GenerateReport is true or if you specify the -report option of the codegen report.

Settings

Off

This value is the default value.

The code generator does not run static code metrics analysis at code generation time. You can run the analysis and produce the report later by clicking Code Metrics on the Summary tab of the code generation report.

On

The code generator runs static code metrics analysis and produces the report at code generation time.

Programmatic Use

Property: GenerateCodeMetricsReport
Values: false | true
Default: false

Version History

Introduced in R2017b