Main Content

add

Aggregate execution-time profiles

Since R2023b

Description

example

myResultsObject.add(simulationName, anExecutionProfile); adds the execution-time 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), processor-in-the-loop (PIL), or external mode simulations of a model.

Examples

Aggregate Execution-Time Profiles

For an example that uses the function, see Aggregate Execution-Time Profiles and Identify Worst-Case Task Execution.

Input Arguments

collapse all

Name for simulation that produced execution-time metrics.

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

Workspace variable that contains execution-time metrics from the model simulation.

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

Object that contains aggregate of execution-time profiles produced by multiple software-in-the-loop (SIL), processor-in-the-loop (PIL), or external mode simulations of a model.

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

Version History

Introduced in R2023b