Simulink Profiler
R2026bAnalyze distribution of compilation and execution time among components and blocks
Description
The Simulink Profiler profiles the distribution of compilation and execution time among components and blocks in a model. To profile the simulation, the Simulink Profiler measures:
Total compile time and the distribution across compilation phases and among model references that simulate in normal mode
The total execution time and the distribution among model references, subsystems, and blocks in the model
Use the profiling results to:
Identify components of the model that create simulation bottlenecks.
Target investigations to improve compile time, execution time, or both.
Prioritize optimization activities.
Focus performance investigations on phases and components that contribute disproportionately to total compilation and execution time. For example, if an S-Function block accounts for most of the execution time, optimizing the S-function code could speed up the simulation.
To simplify and speed up performance analysis, generate AI explanations of profiling results. The AI explanation summarizes key findings and identifies potential bottlenecks in the simulation. To generate AI explanations, you must have a Simulink® Copilot license. (since R2026b)
Open the Simulink Profiler
Simulink Toolstrip: On the Debug tab, in the Performance section, click the Performance button arrow and select Simulink Profiler.

Examples
Tips
When you want to analyze and improve simulation performance, consider starting the analysis by analyzing your model and simulation configuration using the Performance Advisor.
After analyzing the model and simulation configuration using the Performance Advisor, you can perform deeper analysis by profiling simulations using the Solver Profiler and the Simulink Profiler.
The Solver Profiler analyzes the performance of the selected solver for the model, which can be particularly helpful for simulations that use variable-step solvers. The profiling results help you identify when and why the step size is limited.
The Simulink Profiler helps you identify bottlenecks for simulation performance by analyzing the distribution of simulation execution time among model components.





