Debug Application and Collect Profiling Information

After configuring the project and modifying the source code to use the profiler API, build and debug your project.

The project halts at the main() function.

Note: If you are using the Debug Configurations dialog box to debug the project, select the Console External RAM configuration in the tree structure. For example, <project_name>_M5485EVB_Console_External_RAM_PnE USB BDM.

To collect profiling information:

  1. Select the Console view and click the Pin Console button.
  2. Click Resume to resume the program execution.
  3. Notice the program output messages in the Console view and wait until the I have all the Profile Data message is displayed.
  4. Click Terminate to stop the program execution.
    Figure 1. Console View
    Console View

This is how you collect profiling data.