Solver Profiler
Identify solver performance bottlenecks
Description
Use the Solver Profiler to examine solver and model behavior to identify issues that can contribute to poor simulation performance.
Use the Solver Profiler to analyze a model for patterns that affect its simulation. The Solver Profiler presents graphical and statistical information about the simulation, solver settings, events, and errors. You can use this data to identify locations in the model that caused simulation bottlenecks.
In addition, there are multiple factors that can limit the simulation speed. The Solver Profiler logs and reports all the major events that occur when simulating a model:
Zero-crossing events
Solver exception events
Solver reset events
Jacobian computation events
These events are common and necessary for an accurate simulation. However, they do incur computational cost and frequent occurrences can slow down or even stall the simulation.
Available actions
Trace
Configure
Explore
Information Panes
Statistics
Step Size
Suggestions
Open the Solver Profiler
Simulink® Toolstrip: On the Debug tab, in the Performance section, 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
.
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 and can be particularly helpful for analyzing the performance of 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 R2016a








