Main Content
Code Execution-Time Profiling
View and analyze execution-time profiles of code sections
Use execution-time 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 Profile Analyzer, code execution report, or Simulation Data Inspector to analyze execution time metrics.
Apps
Code Profile Analyzer | Analyze execution-time and stack usage profiles for generated code (Since R2023a) |
Classes
Objects
Functions
Topics
Workflow Overviews
- Execution-Time Profiling for Generated Code
Use execution-time 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. - 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.