The Metrics window lists all the methods within the current module, and displays the chosen metric calculated for each class and for each method contained in the currently selected class.
The tool window consists of two sections.
The left section contains the code tree representing the structure of the current module. The bottom level of the tree is a type level.
Click the ellipsis button at the top of the section to specify the calculated metric and filtering options.
The following metrics are available for types.
The total cyclomatic complexity of all members contained in the current type.
Depth of Inheritance Tree
The number of superclasses the current class has.
The total number of lines contained in the current type.
The total maintenance complexity of all members contained in the current type.
Number of Methods Inherited
The number of derived methods contained in the current type.
Number of Children
The total number of types derived from the current type.
Potential Methods Inherited
The number of methods that can be derived from the current type.
Number of Private Instance Methods
The number of private methods contained in the current type.
The right section contains the list of members contained in selected type selected in the left section. To navigate to the needed member simply double click it in the list.
Click the ellipsis button at the top of the section to specify the calculated metric and options for filtering and sorting.
The following metrics are available for members.
This metric searches for the elements that can increase code complexity - loops, conditional statements, local variable declarations, etc. Each entry has a corresponding coefficient assigned and these coefficients are summarized to get the metric value.
This metric summarizes the number of branches (loops and conditional statements) in each method.