代码执行探查
查看和分析代码节的执行配置文件
利用代码执行探查可以:
确定生成的代码是否满足目标硬件的实时要求。
确定哪些代码节需要进行性能改进。
您可以配置软件在环 (SIL)、处理器在环 (PIL) 或基于 XCP 的外部模式仿真,为您生成的代码产生执行时间度量。可以使用代码执行报告或仿真数据检查器来分析执行时间。
App
代码探查分析器 | Analyze execution-time and stack usage profiles for generated code (自 R2023a 起) |
类
对象
函数
主题
工作流概述
- 生成代码的执行探查
使用代码执行探查来观察代码执行速度。 - Aggregate Execution-Time Profiles to Identify Worst Execution
Identify and analyse worst task execution.
探查配置和结果
- Create Execution-Time Profile for Generated Code
Configure SIL, PIL, or XCP external mode simulation to produce execution-time metrics for generated code. - View and Compare Code Execution Times
Observe code execution times with Simulation Data Inspector and Code Profile Analyzer. - Code Execution Profiling Report
Examine report of execution-time metrics for profiled code sections. - Analyze Code Execution Data
Use line commands to analyze execution-time data. - Visualize Task Scheduling in XCP External Mode Simulation
Run an XCP external mode simulation that displays task activity and diagnostics and CPU activity and utilization. - Reduce Bandwidth Usage During Code Execution Profiling
Capture main profiling metrics and display absolute time to reduce communication channel bandwidth usage. - Execution-Time Profiling From Command Line
Use line commands to configure execution-time profiling and view report. - Remove Instrumentation Overheads from Execution Time Measurements
Improve execution-time profiling on deterministic hardware. - Tips and Limitations
A list of tips and known limitations.