Profilazione del tempo di esecuzione del codice
Visualizzare e analizzare i profili del tempo di esecuzione delle sezioni di codice
Utilizzare la profilazione del tempo di esecuzione per:
Verificare se il codice generato soddisfa i requisiti in tempo reale dell'hardware target.
Determinare le sezioni di codice che richiedono miglioramenti in termini di prestazioni.
È possibile configurare simulazioni Software-In-the-Loop (SIL), Processor-In-the-Loop (PIL) o in modalità esterna basata su XCP per ottenere metriche relative al tempo di esecuzione del codice generato. Utilizzare Code Profile Analyzer, il report sull'esecuzione del codice o Simulation Data Inspector per analizzare le metriche relative al tempo di esecuzione.
App
| Code Profile Analyzer | Analyze execution-time and stack usage profiles for generated code (Da R2023a) |
Classi
Oggetti
Funzioni
Argomenti
Panoramiche sul workflow
- 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 analyze worst task execution.
Configurazione della profilazione e risultati
- 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. - Manage Bandwidth Usage and Memory Allocation During Code Execution Profiling
Capture main profiling metrics and display absolute time to reduce communication channel bandwidth usage, and control memory allocation. - 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.