background image
<< Metrics Summary | Metrics Viewer Preferences >>
<< Metrics Summary | Metrics Viewer Preferences >>

Metrics Viewer

Runtime Analysis
Parameter
Meaning
n
1
Number of distinct
operators
n
2
Number of distinct
operands
N
1
Number of operators
instances
N
2
Number of operands
instances
When a source file node is selected in the Metrics Viewer, the following results are
displayed in the Metrics report:
Metric
Meaning
Formula
n
Vocabulary
n
1
+
n
2
N
Size
N
2
+
N
2
V
Volume
N
* log2
n
D
Difficulty
n
1
/2 *
N
2
/
n
2
E
Effort
V
*
D
B
Errors
V
/ 3000
T
Testing time
E
/
k
In the above formulas,
k
is the
Stroud
number, and has a default value of 18. You can
change the value of
k
in the Metrics Viewer Preferences. Adjustment of the Stroud
number allows you to adapt the calculation of
T
to the testing conditions: team
background, criticity level, and so on.
When the Root node is selected, the Metrics Viewer displays the total testing time for
all loaded source files.
V(g) or Cyclomatic Number
The V(g) or cyclomatic number is a measure of the complexity of a function which is
correlated with difficulty in testing. The standard value is between 1 and 10.
A value of 1 means the code has no branching.
65