Everything
2.17.2 Display the coverage measurement result

When the program starts running, a coverage measurement is automatically begun, and when the program stops running, the coverage measurement is terminated at the same time.

(1)

Code coverage rates

(a)

Display of code coverage rates for source text lines and disassembled text lines

The code coverage rates are indicated on the Editor panel/Disassemble panel that is displaying the target program.

On each panel, the target source text lines and disassembled result lines are shown in color-coded background (see "Table 2.21") according to their code coverage rate that was calculated based on the formula described in "Table 2.20".

Note that the results are not shown when disconnected from the debug tool or during the program execution.

Selecting [Clear coverage information] from the context menu in the Editor panel/Disassemble panel will reset all the coverage information acquired, including the color-coded display on each panel.

Caution

When the selected microcontroller supports multi-core, in the Local RAM self area, note that the measurement results will be displayed only for the access in the currently selected PE (see "2.9 Select a Core (PE)").

Table 2.20

Method for Calculating Code Coverage Rates for Source Lines and Disassemble Lines

Panel

Calculation Method

Editor panel

"Number of bytes of code executed in the address range corresponding to the source text line" / "Total number of bytes of code in the address range corresponding to the source text line"

Disassemble panel

"Number of bytes of code executed in the address range corresponding to the disassembled text line" / "Total number of bytes of code in the address range corresponding to the disassembled text line"

Table 2.21

View of Code Coverage Measurement Result (Default)

Code Coverage

Background Color

100%

 

1 to 99%

 

0% (not yet executed)

 

Remark 1.

The code coverage measurement result displayed on each panel is automatically updated at every program break.

Remark 2.

The above background colors depend on the configuration in the [General - Font and Color] category of the Option dialog box.

Remark 3.

The above background colors do not apply to the lines that are outside of the subject area.

Remark 4.

If the downloaded lode module file is older than the source file currently being open, the displaying of the code coverage measurement result is not performed in the Editor panel.

Figure 2.89

View of Code Coverage Measurement Result (Editor Panel)

Figure 2.90

View of Code Coverage Measurement Result (Disassemble Panel)

(b)

Display of code coverage rates for each function

Code coverage rates of each function can be checked via the [Code Coverage[%]] item in the Function List panel of the analyze tool. For details on "the code coverage rates of the function", see "CS+ Analysis".

(2)

Data coverage rates

Data coverage rates of each variable can be checked via the [Data Coverage[%]] item in the Variable List panel of the analyze tool. For details on "the data coverage rates of the variable", see "CS+ Analysis".