Main Content

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

TargetRepresent real-time application and target computer status (Since R2020b)
InstrumentCreate real-time instrument object (Since R2020b)
slrealtime.instrument.LineStyleCreate real-time instrument LineStyle object (Since R2022b)
ProfilerDataData returned from profiler (Since R2020b)
StimulationTarget computer model root inport stimulator object (Since R2021a)

Functions

startProfilerStart profiling service on target computer (Since R2020b)
stopProfilerStop profiling service on target computer (Since R2020b)
getProfilerDataRetrieve profile data object (Since R2020b)
resetProfilerReset profiling service state to Ready (Since R2020b)
slrtTETMonitorOpen Simulink Real-Time task execution time (TET) monitor (Since R2020b)
plotGenerate execution profiler plot (Since R2020b)
reportGenerate profiler report (Since R2020b)
getSupportInfoCreates slrealtimeinfo.txt file that provides support information about Simulink Real-Time installation (Since R2020b)
getCrashStackDownloads and decodes crash stack core files from target computer and opens these in MATLAB editor (Since R2020b)

Blocks

Enable ProfilerStart and stop execution profiler on target computer (Since R2020b)
Log EventLog an execution profiling event (Since R2020b)

Topics

Featured Examples