User manual
UM0036 STM8 C tutorial
Doc ID 7705 Rev 11 363/385
15. From the Trace contextual menu select Column Display... Click on Uncheck all, then
check the following: Record, Address, Data, Event, Symbolic Disassembly, BEM.
Click on OK.
16. Starting from the last record, find the record for which the BEM (Advanced breakpoints)
description is “BEM l1 e3 else”. Select this record and select Previous Source from
the Trace Contextual menu.
Figure 295. Advanced breakpoint info in trace
17. From the Trace Contextual menu select Goto source to jump to the line of source code
that sets off the bug in the Editor window.
18. Select Debug Instrument>Advanced Breakpoints... and uncheck the Enable
Configuration checkbox. Click on OK.
12.7.4 Run a coverage and profiling session
12.7.5 Run a performance analysis
The Performance analysis feature displays statistics on certain performance criteria
regarding the running of the application program. It measures the time spent in a section of
code, defined by its start and end addresses. Data such as the minimum execution time,
maximum execution time and the execution time as a percentage of the total overall
execution of all code is provided.
In this procedure you will learn how to use the Performance Analysis feature to measure the
time spent in a function (the trapISR function).
To run the performance analysis:
1. Select Debug Instrument>Performance Analysis.
2. In the Performance Analysis window enter 5 in the Number of passes field, check
the Disable breakpoints checkbox.
3. Select timer.c;69 and timer.c;97 from the Bookmarks fields for Starting Address
and Ending Address, respectively. These mark the first and last instruction of
trapISR function.