Measure function execution times

Description

Measure execution times and generate metrics for functions inside generated code.

Category: Code Generation > Verification

Settings

Default: Off

Off

No function-level instrumentation, so execution times for functions in generated code are not collected.

Coarse (referenced models and subsystems only)

Measure execution times only for function code generated from referenced models and subsystems.

Detailed (all function call sites)

Measure execution times for all functions in generated code.

Dependencies

To use this parameter, you must also select Measure task execution time for the top model of the model reference hierarchy.

For a model in a reference hierarchy, the software does not support simultaneous function execution-time measurement and code coverage.

Command-Line Information

Parameter: CodeProfilingInstrumentation
Type: character vector
Value: 'off' | 'coarse' | 'detailed'
Default: 'off'

Recommended Settings

ApplicationSetting
DebuggingOn
TraceabilityOn
EfficiencyOff
Safety precaution

No recommendation

Related Topics