Profile and Optimize Execution Performance
Analyze the execution time of the Simulink® model running on Raspberry Pi hardware to determine if the generated code meets real-time performance requirements. Use execution profiling results to identify bottlenecks and make informed improvements, thus optimizing the design for real-time and resource-constrained scenarios.
Also, improve performance and efficiency of code generated and deployed on your Raspberry Pi hardware to achieve faster execution and better resource utilization for Raspberry Pi applications.
For more information on the product stack required for profile execution of Simulink models using Raspberry Pi Blockset, see Product Stack for Raspberry Pi Blockset.
Topics
- What Is Code Replacement? (Embedded Coder)
Why and how to replace code. Code replacement libraries that MathWorks provides. Contents of a code replacement library and how the code generator uses the contents. Terminology and limitations.
- Optimize Code for Raspberry Pi Using Code Replacement Library
Procedural guide to activate code replacement feature for Raspberry Pi hardware boards.
- Product Stack for Raspberry Pi Blockset
Identify minimum required product(s) for Raspberry Pi Blockset to best suit your end goals.
- Troubleshoot Task Overrun Issue on Raspberry Pi Hardware
Detect and resolve task overrun issue on Raspberry Pi hardware.
Model Settings
| Base rate task priority | Static priority of the base rate task |
| Base rate trigger | Select the source of the scheduler interrupt for the Raspberry Pi hardware |
| Detect task overruns | Detect and indicate when a task overrun occurs |
Related Information
- Code Replacement (Embedded Coder)

