主要内容

代码堆栈使用量探查

查看和分析代码节的堆栈使用量探查

使用堆栈使用量探查可以:

  • 确定目标硬件的堆栈内存需求。

  • 观察编译器优化和数据输入对堆栈使用量的影响。

您可以配置软件在环 (SIL) 或处理器在环 (PIL) 仿真,为生成的代码生成堆栈使用量度量。使用代码探查分析器、代码堆栈探查报告或仿真数据检查器来分析堆栈使用量度量。

对象

全部展开

coder.profile.ExecutionStackSetAggregate stack usage profiling results from multiple SIL, PIL, or external mode simulations (自 R2023b 起)
coder.profile.test.TestHookDefine custom callback functions for coder.profile.test.runTests (自 R2025a 起)

函数

全部展开

addAggregate stack usage profiles (自 R2023b 起)
addDetailsAdd text items to Code Profile Analyzer display or code profiling report (自 R2025a 起)
getExtract specific stack usage profile from aggregate of profiles (自 R2023b 起)
removeRemove stack usage profile from aggregate of profiles (自 R2023b 起)
coder.profile.test.runTestsAutomate execution-time or stack usage analysis of code generated from Simulink models or MATLAB functions (自 R2024a 起)

主题