Main Content

Simulink.architecture.profile

Generate profile report for model configured for concurrent execution

Description

example

Simulink.architecture.profile(model) generates a profile report for a model configured for concurrent execution. Subsequent calls to the command for the same model name overwrite the existing profile report.

example

Simulink.architecture.profile(model,numSamples) specifies the number of samples to generate a profile report.

Examples

collapse all

Generate profile report for the model slexMulticoreExample.

openExample("simulink_features/AssigningTasksToCoresForMulticoreProgrammingExample"); 
Simulink.architecture.profile('slexMulticoreExample');

The command creates the file slexMulticoreExample_ProfileReport.html in the current folder and opens it.

Generate profile report for the model slexMulticoreExample with data for 120 time steps.

openExample("simulink_features/AssigningTasksToCoresForMulticoreProgrammingExample"); 
Simulink.architecture.profile('slexMulticoreExample',120);

The command creates the file slexMulticoreExample_ProfileReport.html in the current folder.

Input Arguments

collapse all

Model to profile, specified as a character vector. Specify a model that is configured for concurrent execution.

Data Types: char

Number of time steps, specified as a real, positive integer. This value determines the number of steps to collect data for in the profiled model.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

Version History

Introduced in R2014a