Documentation Center

  • Trial Software
  • Product Updates

Simulink.architecture.profile

Generate profile report for model configured for concurrent execution

Syntax

  • Simulink.architecture.profile(model) example
  • Simulink.architecture.profile(model,numSamples) example

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

expand all

Generate profile report

Generate profile report for the model sldemo_concurrent_execution.

Simulink.architecture.profile('sldemo_concurrent_execution');

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

Generate profile report for 120 time steps

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

Simulink.architecture.profile('sldemo_concurrent_execution',120);

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

Input Arguments

expand all

model — Model to profilestring

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

Data Types: char

numSamples — Number of time steps100 (default) | real, positive integer

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

See Also

| | | | | |

Was this topic helpful?