Range analysis

Improving the performance of an application often requires isolation of small portions of large subroutines, such as computationally intensive nested loops, which account for the majority of the subroutine's execution time.

After profile data becomes available, you can get profile information for a particular section of code by clicking the Range Analysis button ( ).

You may specify a range of hexadecimal addresses with these fields. When the debugger displays the program in assembly mode, hexadecimal addresses are located to the left of their corresponding instructions. You can click these addresses to input the number into the range text fields, thereby giving a convenient way to specify ranges.

When a range is specified in the text fields, click the Calculate Range button to display the amount of time in seconds as well as a percentage of total execution time for this range in the bottom of the Range Analysis window. If no range or an inappropriate range is specified when you select the Calculate Range button, the valid range of sampling addresses for the program is displayed in the Range Analysis window. The window can be dismissed by pressing the Close button.

To obtain Range Analysis from the debugger command pane, enter:
profilemode range start_addr end_addr

where start_addr and end_addr are the beginning and end of your range, respectively. The result will appear in the debugger command pane.

Related topic:


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.