Profiling and Optimization
Execution profiling, display, analysis, and optimization by using
MATLAB® functions
Profile the task execution time and function execution time of the real-time application that is running on the target computer. Then, you can tune its performance.
Objects
Target | Represent real-time application and target computer status (Since R2020b) |
Instrument | Create real-time instrument object (Since R2020b) |
slrealtime.instrument.LineStyle | Create real-time instrument LineStyle object (Since R2022b) |
ProfilerData | Data returned from profiler (Since R2020b) |
Stimulation | Target computer model root inport stimulator object (Since R2021a) |
Functions
startProfiler | Start profiling service on target computer (Since R2020b) |
stopProfiler | Stop profiling service on target computer (Since R2020b) |
getProfilerData | Retrieve profile data object (Since R2020b) |
resetProfiler | Reset profiling service state to Ready
(Since R2020b) |
slrtTETMonitor | Open Simulink Real-Time task execution time (TET) monitor (Since R2020b) |
plot | Generate execution profiler plot (Since R2020b) |
report | Generate profiler report (Since R2020b) |
getSupportInfo | Creates slrealtimeinfo.txt file that provides support information
about Simulink
Real-Time installation (Since R2020b) |
getCrashStack | Downloads and decodes crash stack core files from target computer and opens these in MATLAB editor (Since R2020b) |
Blocks
Enable Profiler | Start and stop execution profiler on target computer (Since R2020b) |
Log Event | Log an execution profiling event (Since R2020b) |
Topics
- Execution Modes for Real-Time Applications
Learn about the behavior of the interrupt and polling execution modes.
- Simulink Real-Time Options Pane
Configure initial values for real-time application options.