| Embedded IDE Link™ VS | ![]() |
| On this page… |
|---|
The real-time execution profile capability in Embedded IDE Link™ VS software uses a set of utilities that record, upload, and analyze the execution profile data for synchronous and asynchronous tasks in your generated code.
The profiler generates output in the following formats:
Graphical display that shows task activation, preemption, task resumption, and task completion. All of the data is presented in the form of a MATLAB® graphic with the data presented by model rates and execution time.
An HTML report that provides statistical data about the execution of each task in the running process.
In combination, the reports provide a detailed analysis of how your code runs on the processor.
To configure a model to use execution profiling, perform the following steps:
Open the Configuration Parameters dialog for your model.
Select Embedded IDE Link VS from the Select tree.
Select Profile real-time task execution to enable real-time task profiling.
Assign a name for the object handle in IDE link handle name. Embedded IDE Link VS software exports this object to your MATLAB workspace with the name you enter.
Click OK to close the Configuration Parameters dialog box.
To run your simulation and then view the execution profile for your model:
Click Incremental build (
) on the model toolbar to generate,
build, load, and run your code on the processor.
Switch to the IDE and halt the running program in VisualDSP++® IDE.
To view the profile report, enter the following command at the MATLAB command prompt:
profile(objectname,'report')
where objectname is the name you provided in IDE link handle name in step 4 above and report is required to generate the profile report. MATLAB returns a graphic of the execution report and the HTML execution report. The following figure shows a sample profiling report graphic generated from the Code Generation Workflow Example (vdspworkflow1) demo.

Refer to profile for more information.
![]() | Using Processor-in-the-Loop | System Stack Profiling | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |