Solver Profiler
R2026bIdentify solver performance bottlenecks
Description
The Solver Profiler logs and analyzes solver activity, such as zero-crossing events and solver resets, in a simulation. These solver events are necessary for accurate simulation but incur computational cost. Profiling the solver activity helps identify configuration and modeling issues that cause solver events to occur more frequently than necessary.
The Solver Profiler provides recommendations for configuration and modeling changes that can speed up simulations by reducing the number of solver events. The profiling results include statistical and graphical information about these solver events:
Zero-crossing events
Solver exceptions
Solver resets
Jacobian computations
To simplify and speed up performance analysis, generate AI explanations of profiling results. The AI explanation summarizes key findings, identifies potential bottlenecks, and provides actionable recommendations to improve simulation performance. To analyze profiling results using AI, you must have a Simulink® Copilot license. (since R2026b)
Local Solver Profiler
Since R2026b
The Local Solver Profiler configures profiling settings and displays profiling results for a local solver. The Local Solver Profiler provides the same configuration and visualization options as the Solver Profiler. However, the Local Solver Profiler toolstrip does not include the simulation controls that the Solver Profiler provides in the Profile section. To profile one or more local solvers, use the Local Solver Analyzer.
For more information, see Local Solver Analyzer.
Open the Solver Profiler
Simulink Toolstrip: On the Debug tab, click the Performance button arrow and select Solver Profiler.

Solver information menu: To open the Solver information menu, click the hyperlink on the right of the status bar at the bottom of the Simulink Editor. Then, click Solver Profiler
.
MATLAB® Command Window:
solverprofiler.profileModel(mdl,OpenSP="on")profiles the solver for the modelmdland opens the Solver Profiler after the simulation completes.
Examples
Related Examples
Parameters
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.
Version History
Introduced in R2016aSee Also
Tools
- Local Solver Analyzer | State Explorer | Zero Crossing Explorer | Simscape Results Explorer (Simscape)









