User manual
UM0036 EMU3 emulator features
Doc ID 7705 Rev 11 319/385
Example 2—Setting an advanced breakpoint on an input probe value
This program allows you to make the trace recording conditional on a specific input probe
signal, and then record the trace until the trace buffer is full. Program the Advanced
Breakpoints window as summarized below:
Note: You must start with Trace OFF so that the trace starts to be filled after the required event
occurs and until the trace is full.
10.6 Performance analysis
You can open the Performance Analysis window by clicking on (the Performance
Analysis icon) from the Menu Bar, or by selecting Debug Instrument > Performance
Analysis.
The Performance Analysis window allows you to measure the time spent in a given portion
of your code in order to evaluate the efficiency of your application.
In the Performance Analysis window, you select a section of code (for example, a function)
by choosing a start and end bookmark, or by defining the start and end addresses.
Enter the number of passes to be analyzed. The program is run and timed. The Total time
for the number of passes is recorded. The percentage time inside the defined start and end
points (% time in code) is calculated, as is the Maximum time, Minimum time, and
Average time for a single pass.
The results are displayed in the Statistics tab of the Performance Analysis window. They
may also be viewed in graphical form on the Graphic tab, and a number of graphical
manipulations carried out to facilitate analysis.
This section provides information about:
● Running a performance analysis
● Using the Run/Stop/Continue commands
● Viewing results
10.6.1 Running a performance analysis
The Performance Analysis dialog box appears as shown in Figure 253.
Table 84. Advanced breakpoints summary
Step Description
START with TRACE OFF
LEVEL 1:
IF (input_probe value == 0xF)
THEN (Trace ON)
LEVEL 2:
IF (trace_full = 1)
THEN Break;
LEVEL 3-4: (empty)