报告生成
借助HTML代码生成报告,您可以查看生成的代码的源文件,并分析有关生成代码的信息,例如代码生成目标,子系统,代码接口和状态代码指标。代码生成报告提供了模型的代码和元素之间的可追溯性。在MATLAB环境之外包括模型的网络视图,以共享您的模型和生成的代码。
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.
课程
功能
话题
报告生成
使用代码生成报告访问生成的代码文件和有关生成代码的信息。
Generate a Code Generation Report
构建模型后,生成HTML代码生成报告,用于分析生成的代码。
Generate Code Generation Report After Build Process
生成代码后,您可以生成HTML代码生成报告,而无需重建模型。
You can refer to existing code generation reports at any time.
At the MATLAB®命令行,您可以生成,打开和关闭具有以下功能的HTML代码生成报告:
要共享代码生成报告,您可以包装代码生成报告文件并将文件支持到zip文件中以进行传输。金宝app
在MATLAB环境之外包括模型的网络视图,以共享您的模型和生成的代码。
分析生成的代码
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
代码生成报告中的代码替换报告部分记录了代码替换库(CRL)函数,这些功能用于代码生成期间代码替换。
Use standalone workflow to check code generator assumptions.
文档生成的代码with Simulink Report Generator
Explains how to use the金宝app®报告生成器™software to generate a detailed report for a code generation project.