| |||
| Home > Tracing Tutorial > Comparing trace start and end points with a trace range > Examining trace captured with trace start and end points | |||
Examine the captured trace in the Trace tab:
Observe that between trace start and end points:
the captured trace includes the tracing of called functions
there are no discontinuities after the trace capture begins.
Display the source analysis view for the captured trace:
Click the Source tab.
Scroll through the source analysis view.
Observe that program flow does not go into if (sample_ready
== 0) very often. Also, the same four or five lines of
C appear, waiting for sample_ready to equal zero.
Search the captured trace for functions:
Click the Trace tab to display the captured trace.
Select Find Symbol Name... from the Find menu to display the Enter Value dialog box.
Enter the name of a function that is called within
the while(1) loop, without the parentheses. For
example, enter GetAverage.
Click Find. The first instance
of GetAverage in the captured trace is selected. Figure 10.25 shows an example:
Click on the first instance of GetAverage.
Click the trace.c tab in
the Code window. The current context is at the entry point to GetAverage. Figure 10.26 shows an example:
If you are using an Embedded Trace Buffer™ (ETB™) to capture trace, you might not have enough trace output to see all function calls.
Scroll through the captured trace. The complete
execution of GetAverage is traced, not just the
call into the function.
Search the captured trace for an address:
Select Find Address Expression... from the Find menu to display the Enter Value dialog box.
Enter the address 0x8280, the Trace Start Point address.
Click Find. The next trace
sample with an address 0x8280 is selected and
displayed. Figure 10.27 shows
an example:
Press F3 to find each subsequent sample with an
address of 0x8280. In this case, there are no
trace pause messages.
To summarize, any instruction execution that occurs between the start and stop points is traced, including function calls and any exception handlers that execute.
Setting trace ranges in conjunction with trace start and end points
the following in the RealView Debugger Command Line Reference Guide:
Chapter 2 RealView Debugger Commands for details of the DISASSEMBLE, ETM_CONFIG, and TRACE commands.