
Hitachi Embedded Workshop User Manual
228
Figure 4.55 Profile-Chart Window
4.12.10
Types and Purposes of Displayed Data
The profile function is able to acquire the following information:
Address
You can see the locations in memory to which the functions are allocated.
Sorting the list of functions and global variables in order of their addresses
allows the user to view the way the items are allocated in the memory space.
Size
Sorting in order of size makes it easy to find small functions that are frequently
called. Setting such functions as inline may reduce the overhead of function
calls.
Stack Size
When there is deep nesting of function calls, pursue the route of the function
calls and obtain the total stack size for all of the functions on that route to
estimate the amount of stack being used.
Times
Sorting by the number of calls or accesses makes it easy to identify the
frequently called functions and frequently accessed global variables.
Profile Data
[Times] (the number of function calls or global variable accesses)
[Cycle] (the number of execution cycles)
[Ext_mem] (the number of external memory accesses)
[I/O_area] (the number of internal I/O area accesses)
[Int_mem] (the number of internal memory accesses)
The number of execution cycles is calculated by subtracting the total execution cycles at a specific function call
instruction execution from the total execution cycles at a return instruction execution of a specific function.
4.12.11
Creating Profile Information Files
To create a profile information file, choose the [Output Profile Information Files…] menu option from the pop-
up menu. The [Save Profile Information Files] dialog box is displayed. Pressing the [Save] button after selecting
a file name will write the profile information to the selected file. Pressing the [Save All] button will write the
profile information to all of the profile information files.