Main Content

表现

Execution time profiling, memory usage profiling, optimized code

当您准备生成生产代码,提高性能,使用配置选项和高级优化时。您可以使用选项和优化MATLAB®CODER™产品文档。与嵌入式编码器®,您还可以使用执行时间分析和内存使用分析来分析性能。

使用执行时间分析到:

  • 确定生成的代码是否符合硬件的实时要求。

  • 确定需要改进性能的代码部分。

The static code metrics report includes metrics on files, global variables, and functions. The static code metrics report helps you to determine which global variables and function call paths affect performance.To determine the size of stack memory that is required to run generated code, you can run a software-in-the-loop (SIL) and processor-in-the-loop (PIL) execution that generates a stack usage profile.

功能

展开全部

ExecutionTimeInSeconds 获取代码的介绍部分(MATLAB代码生成)的几秒钟的执行时间
ExecutionTimeInticks 在计时器tick中获取代码的分析部分的执行时间(MATLAB代码生成)
getCoderExecutionProfile Extract execution-time profile for code generated fromMATLABfunction (MATLAB code generation)
姓名 获取配置文件的名称(MATLAB代码生成)
数字 获取唯一标识配置码的代码部分(MATLAB代码生成)的号码
NumCalls Total number of calls to profiled code section (MATLAB code generation)
report 打开代码执行分析报告并指定时间测量显示(MATLAB代码生成)
日程 可视化任务调度(MATLAB代码生成)
部分 Get array ofcoder.profile.ExecutionTimeSectionobjects for profiled code sections (MATLAB code generation)
selftimeinticks 获取记录的分型代码部分记录的计时器数量,不包括儿童功能所花费的时间(MATLAB代码生成)
时间 进行哪个代码部分执行时间测量的时间(MATLAB代码生成)
Timertickspersecond 每秒获取并设置数量的计时器刻度(MATLAB代码生成)
TotalExecutionTimeInTicks 获取记录的分型代码部分(MATLAB代码生成)记录的计时器总数
TotalSelfTimeInticks 获取记录的分型代码部分记录的计时器总数,不包括儿童功能所花费的时间(MATLAB代码生成)
TotalTurnaroundTimeInticks 在整个执行过程中,在配置式代码部分的开始和终点之间获取计时器滴答总数。(MATLAB代码生成)
TurnaroundTimeInticks 在介绍的代码部分(MATLAB代码生成)之间获取计时器数量的数量
MaximumExecutionTimeCallNum 获取最大数量的计时器刻度(MATLAB代码生成)的呼叫号码
最大发行时间 Get maximum number of timer ticks for single invocation of profiled code section (MATLAB code generation)
最大的timecallnum 获取最大计时器数量的呼叫号码,不包括儿童功能所花费的时间(MATLAB代码生成)
MaximumSelfTimeInTicks 获取有关介绍的代码部分记录的最大数量计时器刻度,不包括儿童功能所花费的时间(MATLAB代码生成)
最大值timecallnum Get call number for the code section invocation with the maximum number of timer ticks between the start and the finish (MATLAB code generation)
MaximumTurnaroundTimeInTicks Get maximum number of timer ticks between start and finish of a single invocation of profiled code section (MATLAB code generation)

对象

展开全部

coder.profile.stackdriver 指定驱动程序以获取目标硬件的堆栈使用数据

话题

Execution Time Profiling

Memory Usage Profiling

执行速度