Main Content

Code Stack Usage Profiling

View and analyze stack usage profiles of code sections

Use stack usage profiling to:

  • Determine stack memory requirements for your target hardware.

  • Observe the effect of compiler optimization and data input on stack usage.

You can configure software-in-the-loop (SIL) or processor-in-the-loop (PIL) simulations to produce stack usage metrics for your generated code. Use the Code Profile Analyzer, code stack profiling report, or Simulation Data Inspector to analyze stack usage metrics.

Objects

expand all

coder.profile.ExecutionStackSetAggregate stack usage profiling results from multiple SIL, PIL, or external mode simulations (Since R2023b)

Functions

expand all

addAggregate stack usage profiles (Since R2023b)
getExtract specific stack usage profile from aggregate of profiles (Since R2023b)
removeRemove stack usage profile from aggregate of profiles (Since R2023b)
coder.profile.test.runTestsAutomate analysis of code profiling metrics (Since R2024a)

Topics