代码执行时间探查
查看和分析代码节的执行时间配置文件
通过执行时间探查可以:
确定生成的代码是否满足目标硬件的实时要求。
确定哪些代码节需要进行性能改进。
您可以配置软件在环 (SIL)、处理器在环 (PIL) 或基于 XCP 的外部模式仿真,为您生成的代码产生执行时间度量。可以使用代码探查分析器、代码执行报告或仿真数据检查器来分析执行时间度量。
App
代码探查分析器 | 分析生成代码的执行时间和堆栈使用情况 (自 R2023a 起) |
类
对象
函数
主题
工作流概述
- 生成代码的执行时间分析
使用执行时间分析来观察代码执行速度。 - Aggregate Execution-Time Profiles to Identify Worst Execution
Identify and analyze 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. - 分析代码执行数据
使用行命令分析执行时间数据。 - Generate Profiles Using PMU Metrics
Analyze code execution metrics from the Performance Monitoring Unit of the hardware. - Validate Task-to-CPU Mapping
Map tasks to CPUs and validate mapping. - 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. - Perform Instrumentation-Free Profiling Using Hardware Execution Tracers
Parse execution-time metrics from code execution trace produced by target hardware. - Tips and Limitations
A list of tips and known limitations.