Text and HTML Reports

prevnext

Metrics Reports


Function Metrics Report

The Function Metrics Report provides information on various metrics for each function.

Metrics provided are: the total number of lines per function, the total number of lines of code in the function, the total number of lines that contain comments, and the total number of blank lines.

Note: code+comment+blank != lines, as some lines might have both code and comments.

File Metrics Report

The File Metrics Report provides information on various metrics for each file.

Metrics provided are: the total number of lines per file, the total number of lines of code, the total number of lines that contain comments, the total number of blank lines, and the total number of functions in the file.

Note: code+comment+blank != lines, as some lines might have both code and comments.

File Average Metrics Reports

The File Average Metrics Reports provides averages of metric information for each file.

The cyclomatic complexity is the number of independent paths through a module. The Modified column shows the cyclomatic complexity except that each case statement is not counted; the entire switch counts as 1. The Strict column shows the cyclomatic complexity except && and || also count as 1.

Metrics provided are: the average cyclomatic complexities per function in the file, the average number of lines per function in the file, the average number of lines of code per function in the file, the average number of lines that contain comments per function in the file, the average number of blank lines per function in the file, and the average number of functions in the file.

Note: code+comment+blank != lines, as some lines might have both code and comments.

Project Metrics Report

The Project Metrics Report provides metric information about the entire project. The metrics reported are: the total number of files, the total number of functions, and the total number of lines of source code. This information is also reported on the main title page of the HTML report.

Exporting Project Metrics Info

Project metrics can be saved to a comma delimited text file which can be used in Excel and other spreadsheet programs.

From the Project menu, select Metrics Export-> Set Options, and the following dialog appears. Specify the file name for the metrics text file and select whether column titles are to be included in the file or not.

After setting options, choose Project->Metrics Export->Generate, and the file is exported. Following is an excerpt of the comma delimited metrics file produced.

prevnext


Scientific Toolworks, Inc.
http://www.scitools.com
Voice: (802) 763-2995
Fax: (802) 763-3066
support@scitools.com
sales@scitools.com