Execution Time Profiling for SIL and PIL

During a software-in-the-loop (SIL) or processor-in-the-loop (PIL) execution, you can produce a profile of execution times for code generated from entry-point functions. The software calculates execution times from data that is obtained through instrumentation probes added to the SIL or PIL application.

Use the execution time profile to check whether your code runs within the required time on your target hardware:

  • If code execution overruns, look for ways to reduce execution time.

  • If your code easily meets time requirements, consider enhancing functionality to exploit the unused processing power.

At the end of the SIL or PIL execution, you can:

  • View a report of code execution times.

  • Use the Simulation Data Inspector to view and compare plots of function execution times.

  • Access and analyze execution time profiling data.


SIL and PIL execution supports multiple entry-point functions. An entry-point function can call another entry-point function as a subfunction. However, the software generates execution time profiles only for functions that are called at the entry-point level. The software does not generate execution time profiles for entry-point functions that are called as subfunctions by other entry-point functions.

Related Topics