Main Content

Workspace variable

Workspace variable for execution-time measurements

Model Configuration Pane: Code Generation / Verification


Specify workspace variable that collects measurements and allows viewing and analysis of execution profiles.


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


executionProfile (default) | valid MATLAB® variable name

Default: executionProfile

When you run simulation, software generates specified workspace variable as an coder.profile.ExecutionTime object. To view and analyze execution profiles, use methods from the coder.profile.ExecutionTime and coder.profile.ExecutionTimeSection classes.

Recommended Settings


No impact

TraceabilityValid MATLAB variable name

No impact

Safety precaution

No impact

Programmatic Use

Parameter: CodeExecutionProfileVariable
Type: character vector
Value: valid MATLAB variable name
Default: none

Version History

Introduced in R2011a