Main Content

Save options

Options for saving execution-time measurements

Model Configuration Pane: Code Generation / Verification

Description

Specify option for saving code profiling measurement and analysis data.

Dependencies

You can only specify this parameter if you select the Measure task execution time check box. Otherwise the field appears dimmed.

Settings

Summary data only (default) | All data | Metrics only

Default: Summary data only

Summary data only

Save only code profiling summary data to a coder.profile.ExecutionTime object in the base workspace. Use this option to limit the amount of data that the software saves to the base workspace. For example, if you are concerned that your computer might not have enough memory to store the time measurements for a long simulation. The software calculates metrics for the code execution report as the simulation proceeds, without saving raw data to memory. To view these metrics, use the coder.profile.ExecutionTime report method.

Selecting this option enables the streaming of execution times to the Simulation Data Inspector during simulations.

All data

Save the code profiling measurement and analysis data to a coder.profile.ExecutionTime object in the base workspace. In addition to viewing the code execution report, this option allows you to analyze data using the coder.profile.ExecutionTime and coder.profile.ExecutionTimeSection methods.

Selecting this option enables the streaming of execution times to the Simulation Data Inspector during simulations.

Metrics only

During the simulation, store only these profiling metrics on the target hardware:

  • Maximum execution time of code section

  • Average execution time of code section

  • Number of calls to code section

At the end of the simulation, Simulink® uploads the stored metrics from the target hardware to your development computer.

The storage of profiling data on the target hardware during the simulation reduces bandwidth usage for the communication channel between Simulink and the target application.

This option does not support:

Recommended Settings

ApplicationSetting
DebuggingAll data
TraceabilityAll data
EfficiencySummary data only
Safety precautionNo impact

Programmatic Use

Parameter: CodeProfilingSaveOptions
Type: character vector
Value: 'SummaryOnly' | 'AllData' | 'MetricsOnly'
Default: 'SummaryOnly'

Version History

Introduced in R2011b