Code Execution Profiling
View and analyze execution profiles of code sections
Use code execution profiling to:
Establish whether the generated code meets real-time requirements of your target hardware.
Determine code sections that require performance improvements.
You can configure software-in-the-loop (SIL), processor-in-the-loop (PIL), or XCP-based external mode simulations to produce execution-time metrics for your generated code. Use the code execution report or Simulation Data Inspector to analyze execution times.
Apps
Code Profile Analyzer | Analyze execution-time and stack usage profiles for generated code (Since R2023a) |
Classes
Objects
Functions
Topics
Workflow Overviews
- Execution Profiling for Generated Code
Use code execution profiling to observe code execution speed. - Aggregate Execution-Time Profiles to Identify Worst Execution
Identify and analyse worst task execution.
Profiling Configuration and Results
- 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. - Code Execution Profiling From the Command Line
Use line commands to configure code execution 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.