Main Content


Color profiled model components or open model with profiled components colored



annotate(myExecutionProfile) colors the profiled model components blue. If the model is closed, this command opens the model, with profiled components colored blue. Clicking a blue component opens a window that displays execution-time metrics for generated code.


collapse all

To annotate the profiled model, use the annotate function and the executionProfile workspace variable.


Input Arguments

collapse all

When you run a SIL, PIL, or XCP-based external mode simulation with code execution profiling, the software generates the workspace variable executionProfile, which you specify in Configuration Parameters > Code Generation > Verification > Workspace variable.

Example: executionProfile

Version History

Introduced in R2016b