Main Content

coder.profile.ExecutionTimeSet

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

Since R2023b

Description

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

Creation

Description

example

myResults = coder.profile.ExecutionTimeSet(modelName); creates an object for storing execution-time profiling results produced by multiple software-in-the-loop (SIL), processor-in-the-loop (PIL), or XCP-based external mode simulations of modelName.

Input Arguments

expand all

Name of simulation model.

Properties

expand all

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

Example: resultsObject.ResultsPerTest=10;

Object Functions

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

Examples

Aggregate Execution-Time Profiles and Identify Worst-Case Task Execution

For an example workflow that uses the object, see Aggregate Execution-Time Profiles to Identify Worst Execution.

Version History

Introduced in R2023b