analyze distribution of simulation execution time among model components -凯发k8网页登录
analyze distribution of simulation execution time among model components
description
the simulink profiler runs a profiling simulation of your model and produces a report you can use to analyze the distribution of simulation execution time among model components. analyzing the report can help you:
determine whether a close investigation of one or more model components might yield performance improvements for your model
decide which components to investigate first
in the profiling simulation, the simulink profiler measures the total execution time for the simulation and the execution time for each model component, including blocks, subsystems, and model references. when the execution time for a component is unexpected, you might be able to improve the simulation performance by modifying the component implementation. for example, when an s-function block accounts for most of the execution time, optimizing the s-function code could speed up the simulation.
open the simulink profiler
simulink® toolstrip: on the debug tab, in the performance section, click the performance advisor 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 .
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.