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) and processor-in-the-loop (PIL) simulations to produce execution-time metrics for tasks and functions in your generated code. Use the code execution report or Simulation Data Inspector to analyze execution times.
Execution Profiling for Generated Code
Use code execution profiling to observe code execution speed.
Code Execution Profiling with SIL and PIL
Configure SIL or PIL simulation to produce execution-time metrics for generated code.
View and Compare Code Execution Times
Observe code execution times with Simulation Data Inspector and profiling report.
Use line commands to analyze execution-time data.
Remove Instrumentation Overheads from Execution Time Measurements
Improve execution-time profiling on deterministic hardware.
Capture Main Profiling Metrics on Target Hardware
Reduce communication channel bandwidth usage.
A list of tips and known limitations.