主要内容

本页采用了机器翻译。点击此处可查看英文原文。

探查与优化

通过使用 MATLAB® 函数实现执行探查、显示、分析与优化

对目标计算机上运行的实时应用程序进行任务执行时间和函数执行时间的性能分析。然后,您可以调整它的性能。

对象

Target实时呈现应用程序和目标计算机的状态
Instrument创建实时仪表对象
slrealtime.instrument.LineStyle创建实时仪表线型对象 (自 R2022b 起)
ProfilerData来自探查器的返回数据
Stimulation目标计算机模型根端口激励器对象 (自 R2021a 起)

函数

startProfiler在目标计算机上启动探查服务
stopProfiler停止在目标计算机上对服务进行探查
getProfilerDataRetrieve profile data object
resetProfiler将探查服务状态重置为 Ready
slrtTETMonitor打开 Simulink Real-Time 任务执行时间 (TET) 监控器
plotGenerate execution profiler plot
reportGenerate profiler report
getSupportInfoCreates slrealtimeinfo.txt file that provides support information about Simulink Real-Time installation
getCrashStack下载并解码目标计算机的崩溃堆栈核心文件,并在 MATLAB 编辑器中打开这些文件

模块

Enable Profiler在目标计算机上启动和停止执行探查器
Log EventLog an execution profiling event

主题

精选示例