Profilierung der Code-Ausführungszeit
Anzeigen und Analysieren der Ausführungszeitprofile von Codeabschnitten
Mit der Profilierung der Ausführungszeit können Sie:
Ermitteln, ob der generierte Code die Echtzeitanforderungen Ihrer Zielhardware erfüllt.
Herausfinden, bei welchen Codeabschnitten Leistungsverbesserungen erforderlich sind.
Sie können Software-in-the-Loop- (SIL), Processor-in-the-Loop- (PIL) oder XCP-basierte Simulationen im externen Modus konfigurieren, um Ausführungszeit-Metriken für Ihren generierten Code zu erzeugen. Verwenden Sie den Code Profile Analyzer, den Code-Ausführungsbericht oder den Simulation Data Inspector, um die Ausführungszeit-Metriken zu analysieren.
Apps
| Code Profile Analyzer | Analyze execution-time and stack usage profiles for generated code (Seit R2023a) |
Klassen
Objekte
Funktionen
Themen
Workflow-Überblicke
- 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.
Profilierungskonfigurationen und Ergebnisse
- 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.