Contenu principal

Enable execution profiling

Instrumentation for profiling

Description

App Configuration Pane: Debugging

Configuration Objects: coder.MexCodeConfig

Whether to enable execution profiling for the generated MEX function using the MATLAB® Profiler. To identify the lines of MATLAB code that produce generated code that takes the most time, enable this parameter. See Profile MEX Functions by Using MATLAB Profiler.

Settings

Off

This value is the default value.

The code generator does not include the instrumentation for profiling in the generated MEX function.

On

The code generator includes the instrumentation for profiling in the generated MEX function. You can then use the MATLAB Profiler to profile the MEX function.

Programmatic Use

Property: EnableMexProfiling
Values: false | true
Default: false

Version History

Introduced in R2018a