With an HTML code generation report you can view the source files of the generated code and analyze information about the generated code such as code generation objectives, subsystems, code interface, and state code metrics. The code generation report provides traceability between the code and elements of the model. Include a Web view of the model to share your model and generated code outside of the MATLAB environment.
View meta information about the generated code by using the Code Descriptor API. The Code Descriptor API describes the data interfaces, function interfaces, parameters and global data stores in the generated code.
Access the generated code files and information about the generated code with the code generation report.
Generate a Code Generation Report
When the model is built, generate an HTML code generation report for analyzing the generated code.
Generate Code Generation Report After Build Process
After generating code, you can generate an HTML code generation report without rebuilding your model.
You can refer to existing code generation reports at any time.
Generate Code Generation Report Programmatically
At the MATLAB® command line, you can generate, open, and close an HTML Code Generation Report with the following functions:
Package and Share the Code Generation Report
To share the code generation report, you can package the code generation report files and supporting files into a zip file for transfer.
Web View of Model in Code Generation Report
Include a Web view of the model to share your model and generated code outside of the MATLAB environment.
Analyze the Generated Code Interface
Use the code interface report to see documentation of the generated code interface, including model entry-point functions and interface data, for consumers of the generated code.
The code generator performs static analysis of the generated C or C++ code and provides these metrics in the static code metrics report in the code generation report.
Generate Static Code Metrics Report for Simulink Model
When generating code, generate a report that includes static code metrics, such as, the number of lines of code, size of global variables, and the number of reads and writes.
Analyze Code Replacements in Generated Code
The Code Replacements Report section in the code generation report documents the code replacement library (CRL) functions that were used for code replacements during code generation.
Check Code Generation Assumptions
Use standalone workflow to check code generator assumptions.
Document Generated Code with Simulink Report Generator
Explains how to use the Simulink® Report Generator™ software to generate a detailed report for a code generation project.