Main Content

coder.profile.ExecutionStackSet

Aggregate stack usage profiling results from multiple SIL, PIL, or external mode simulations

Since R2023b

Description

Use a coder.profile.ExecutionStackSet object for the aggregation of stack usage profiling results from multiple software-in-the-loop (SIL) or processor-in-the-loop (PIL) simulations of a model. Then, you can use the Code Profile Analyzer to identify the most demanding execution for each task in the generated code. You can also identify the code or model path that produces the most demanding execution.

Creation

Description

myResults = coder.profile.ExecutionStackSet(modelName); creates an object for storing stack usage profiling results produced by multiple SIL or PIL simulations of modelName.

example

Input Arguments

expand all

Name of simulation model.

Properties

expand all

Specifies the number of most demanding task executions to consider for each model simulation.

Example: resultsObject.ResultsPerTest=10;

Object Functions

addAggregate stack usage profiles
getExtract specific execution-time profile from aggregate of profiles
removeRemove execution-time profile from aggregate of profiles

Examples

Aggregate Stack Usage Profiles and Identify Most Demanding Task Execution

For an example workflow that uses the object, see Aggregate Stack Usage Profiles to Identify Most Demanding Execution.

Version History

Introduced in R2023b