Main Content

add

Aggregate stack usage profiles

Since R2023b

Description

myResultsObject.add(simulationName, anExecutionProfile); adds the stack usage metrics in anExecutionProfile to myResultsObject and associates the added data with simulationName. Use this function to create an aggregate of profiles from multiple software-in-the-loop (SIL) or processor-in-the-loop (PIL) simulations of a model.

example

Examples

Aggregate Stack Usage Profiles

For an example that uses the function, see Aggregate Stack Usage Profiles and Identify Most Demanding Task Execution.

Input Arguments

collapse all

Name for simulation that produced stack usage metrics.

Example: resultsObject.add('Test 1', simOut.stackProfile);

Workspace variable that contains stack usage metrics from the model simulation.

Example: resultsObject.add('Test 1', simOut.stackProfile);

Object that contains aggregate of stack usage profiles produced by multiple software-in-the-loop (SIL) or processor-in-the-loop (PIL) simulations of a model.

Example: resultsObject.add('Run 1', simOut.stackProfile);

Version History

Introduced in R2023b