Download TMS320C6x C Source Debugger User's Guide
Transcript
Defining Areas for Profiling Disabling an area At times, it is useful to identify areas that you do not want affecting profile statistics. To do this, disable the appropriate area. Disabling effectively subtracts the timing information of the disabled area from all profile areas that include or call the disabled area. Areas must be marked before they can be disabled. For example, if you have marked a function that calls a standard C function such as malloc(), you may not want malloc() to affect the statistics for the calling function. You could mark the line that calls malloc(), and then disable the line. This way, the profile statistics for the function would not include the statistics for malloc(). Note: If you disable an area after you have already collected statistics on it, that information will be lost. The easiest way to disable an area is to click the green arrow(s) next to a marked line, range, or function. When you do so, the arrow(s) becomes white: This range is still marked, but it is disabled XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXX XXXXXXX XXXXXXX XXXXXXX XXXXXXX XXXXXXX XXXXXXX XXXXXXX XXXXXXX XXXXXXX XX XXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXX XXXXXXXXXXX XXXXXXXXXXX XXXXXXX XXXXXXXXXXXXXX You can also disable an area by using the Profile Marking dialog box: 1) Open the Profile Marking dialog box by using one of these methods: - From the Profile menu, select Select Areas. - From the context menu for the Profile window, select Select Areas. This displays the Profile Marking dialog box. 2) In the Level box, select C, Assembly, or Both. 3) In the Area box, select Lines, Ranges, Functions, or All areas. See Table 8–3 on page 8-13 for a list of valid combinations. 8-10