Real-Time Execution Profiling

Overview

The real-time execution profile capability in Embedded IDE Link™ MU 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:

In combination, the reports provide a detailed analysis of how your code runs on the processor.

Profiling Program Execution

To configure a model to use execution profiling, perform the following steps:

  1. Open the Configuration Parameters dialog box for your model.

  2. Select Embedded IDE Link MU from the Select tree.

  3. Select Profile real-time task execution to enable real-time task profiling.

  4. Select Export IDE link handle to base workspace and assign a name for the handle in IDE link handle name.

  5. Click OK to close the Configuration Parameters dialog box.

To run your simulation and then view the execution profile for your model:

  1. Click Incremental build ( ) on the model toolbar to generate, build, load, and run your code on the processor.

  2. Switch to the IDE and halt the running program in Green Hills MULTI®.

  3. 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 demo.

    Refer to profile for more information.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS