View Profiling Results

You use the Simple Profiler Data Viewer to view the profiler results. This viewer helps analyze the data of the executed program and determine what changes are appropriate to improve the performance of the application. Using the data display, you can:

To view the profiling results:

  1. Select your project in the CodeWarrior Projects view and press the F5 key to refresh it.
  2. Expand M5485EVB_Console_External_RAM and double-click the profiledump.mwp file.

    The Simple Profiler Data Viewer appears.

    Figure 1. Simple Profiler Data Viewer
    Simple Profiler Data Viewer

The Simple Profiler Data Viewer displays profiling information in the form of a table. The table below describes the fields of the profiling information.

Table 1. Description of Profiler Results
Name Description
Function Name of the function or routine.
Count Number of times the function was called.
Time Time spent in the function itself without counting any time in functions called by this function.
% Percentage of the total time spent in the function.
+Children Time spent in the function and all the functions it calls.
% Percentage of the total time spent in the function and all the functions it calls.
Average Average time for each function invocation, that is Time divided by the number of times the function was called.
Maximum Longest time for an invocation of the function.
Minimum Shortest time for an invocation of the function.
Stack Space Largest size (in bytes) of the stack when the function is called.

The Simple Profiler Data Viewer displays profiling information in three different ways:

To switch to these views, right-click any column of the Simple Profiler Data Viewer table and select the necessary option from the View context menu.

Figure 2. Different Views of Profile Results
Different Views of Profile Results

The three views for displaying profiling information are: