Measure task execution time
Execution-time profiling of generated code
Model Configuration Pane: Code Generation / Verification
Description
Measure execution times and generate metrics for tasks in generated code.
Dependencies
When you use this parameter, you must also specify a workspace variable. The software uses this variable to collect execution-time measurements.
In a model reference hierarchy, the top-model parameter value applies to the whole hierarchy. The software ignores the value of this parameter in referenced models.
Settings
Default: off
- On
During SIL and PIL simulations, collect execution-time measurements for tasks. The software obtains data from instrumentation in the SIL or PIL application.
- Off
Do not collect execution-time measurements.
Recommended Settings
Application | Setting |
---|---|
Debugging | On |
Traceability | On |
Efficiency | Off |
Safety precaution | No recommendation |
Programmatic Use
Parameter: CodeExecutionProfiling |
Type: character vector |
Value: 'on' | 'off' |
Default: 'off' |
Limitations
The MATLAB®
Coder™ Support Package for NVIDIA®
Jetson™ and NVIDIA DRIVE® Platforms does not support code execution profiling. When the Configuration Parameters > Hardware Implementation > Hardware board is set to NVIDIA Jetson
or NVIDIA
Drive
, disable this parameter.
Version History
Introduced in R2011a