Measure task stack usage - Stack usage profiling of generated code - MATLAB (original) (raw)

Main Content

Stack usage profiling of generated code

Since R2022a

Model Configuration Pane: Code Generation / Verification

Description

Measure stack usage for tasks in generated code.

Dependencies

When you use this parameter, you must also specify a stack workspace variable. The software uses this variable to collect stack usage measurements.

In a model reference hierarchy, the top-model parameter value applies to the whole hierarchy. The software ignores the value of this parameter in referenced models.

Settings

off (default) | on

Default: off

On

During SIL and PIL simulations, collect stack usage measurements for tasks. The software obtains data from instrumentation in the SIL or PIL application.

Off

Do not collect measurements of stack usage

Application Setting
Debugging On
Traceability On
Efficiency Off
Safety precaution No recommendation

Programmatic Use

Parameter: CodeStackProfiling
Type: character vector
Value: 'on' | 'off'
Default: 'off'

Version History

Introduced in R2022a