Everything
2.14.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.19") according to their code coverage rate that was calculated based on the formula described in "Table 2.18".

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.

Table 2.18

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.19

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 (see "Table 2.17 Subject Areas of Coverage Measurement").

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.94

View of Code Coverage Measurement Result (Editor Panel)

Figure 2.95

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".