Resource Standard Metrics for C, C++ and Java Visual Metrics Version 5.53 License Type: Site Multi-Network License - 10000 Users Licensed To : M Squared Technologies License No. : ST1000 License Date: Fri Jun 25 06:09:01 1999 (C) 2000 M Squared Technologies Run Date: Tue Oct 10 21:46:17 2000 ________________________________________________________________________ ~~ Function Metrics ~~ ~~ Class Metrics ~~ ~~ Complexity Analysis ~~ File: Contact.java Date: Tue Jul 13 20:03:14 1999 File Size: 1564 Bytes ________________________________________________________________________ Package Begin: rolodex Function: rolodex.Contact.if Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Contact.Contact Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Contact.Contact Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Contact.setName Complexity Param 0 Return 1 Cyclo Vg 4 Total 5 LOC 26 eLOC 14 lLOC 9 Comment 0 Lines 26 Function: rolodex.Contact.getName Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Contact.show Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Contact.toString Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Contact.main Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 LOC 4 eLOC 2 lLOC 2 Comment 0 Lines 4 Class: rolodex.Contact Attributes Publ 0 Prot 0 Private 3 Total 3 Methods Publ 7 Prot 0 Private 1 Total 8 LOC 69 eLOC 37 lLOC 21 Comment 0 Lines 77 Package End: rolodex ------------------------------------------------------------------------ ~~ Total File Summary ~~ LOC 74 eLOC 42 lLOC 26 Comment 0 Lines 84 ------------------------------------------------------------------------ ~~ File Functional Summary ~~ File Function Count ...: 8 Total LOC Lines LOC ...: 48 Total eLOC Lines ......: 22 Total lLOC Lines ......: 17 Total Function Params .: 3 Total Function Return .: 8 Total Cyclo Complexity : 11 Total Function Complex.: 22 ------ ----- ----- ------ ------ ----- Max Function LOC ......: 26 Average Function LOC ..: 6.00 Max Function eLOC .....: 14 Average Function eLOC .: 2.75 Max Function lLOC .....: 9 Average Function lLOC .: 2.13 ------ ----- ----- ------ ------ ----- Max Function Parameters: 1 Avg Function Parameters: 0.38 Max Function Returns ..: 1 Avg Function Returns ..: 1.00 Max Interface Complex. : 2 Avg Interface Complex. : 1.38 Max Cyclomatic Complex.: 4 Avg Cyclomatic Complex.: 1.38 Max Total Complexity ..: 5 Avg Total Complexity ..: 2.75 ------------------------------------------------------------------------ ~~ File Keywords and Metrics ~~ --------------- LOC --------------- case, break .........: 0, 2 Lines of Code (LOC) .: 74 if, else ............: 3, 1 Lines of just { or } : 32 goto, return ........: 0, 2 Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0 Effective LOC (eLOC) : 42 macros, struct, union: 0, 0, 0 Code Statement (lLOC): 26 class, interface ....: 1, 0 -------------- Lines -------------- template, friend ....: 0, 0 Blank Lines .........: 10 namespace, package ..: 0, 1 Comment Lines .......: 0 func, virtual, inline: 8, 0, 0 Total Logical Lines .: 84 Memory alloc, free ..: 0, 0 Total Physical Lines : 84 Memory new, delete ..: 4, 0 ------------ Key Words ------------ ------------- Analysis ------------ Literal Strings .....: 5 Paren Count (,) .....: 29, 29 #include, import ....: 0, 4 Brace Count {,} .....: 16, 16 #define, typedef ....: 0, 0 Bracket Count [,] ...: 1, 1 const, enum .........: 0, 0 Chars/NBLine, Notices: 13, 13 do, while ...........: 0, 1 Code, eCode Lines ...: 88.1%, 50.0% switch, default .....: 0, 0 Comment, Blank Lines : 0.0%, 11.9% for .................: 0 Characters, Spaces ..: 69.4%, 30.6% ________________________________________________________________________ End of File: Contact.java File: Rolodex.java Date: Tue Jul 13 20:03:14 1999 File Size: 3807 Bytes ________________________________________________________________________ Package Begin: rolodex Function: rolodex.Rolodex.Rolodex Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Rolodex.open Complexity Param 1 Return 5 Cyclo Vg 4 Total 10 LOC 51 eLOC 29 lLOC 19 Comment 2 Lines 58 Function: rolodex.Rolodex.close Complexity Param 1 Return 4 Cyclo Vg 1 Total 6 LOC 35 eLOC 21 lLOC 15 Comment 1 Lines 40 Function: rolodex.Rolodex.add Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Rolodex.addContacts Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 LOC 17 eLOC 9 lLOC 6 Comment 0 Lines 17 Function: rolodex.Rolodex.show Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 LOC 6 eLOC 2 lLOC 2 Comment 0 Lines 6 Function: rolodex.Rolodex.main Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 LOC 20 eLOC 12 lLOC 9 Comment 0 Lines 23 Class: rolodex.Rolodex Attributes Publ 0 Prot 0 Private 1 Total 1 Methods Publ 7 Prot 0 Private 0 Total 7 LOC 146 eLOC 84 lLOC 54 Comment 3 Lines 169 Package End: rolodex ------------------------------------------------------------------------ ~~ Total File Summary ~~ LOC 154 eLOC 92 lLOC 62 Comment 3 Lines 180 ------------------------------------------------------------------------ ~~ File Functional Summary ~~ File Function Count ...: 7 Total LOC Lines LOC ...: 135 Total eLOC Lines ......: 75 Total lLOC Lines ......: 53 Total Function Params .: 4 Total Function Return .: 14 Total Cyclo Complexity : 15 Total Function Complex.: 33 ------ ----- ----- ------ ------ ----- Max Function LOC ......: 51 Average Function LOC ..: 19.29 Max Function eLOC .....: 29 Average Function eLOC .: 10.71 Max Function lLOC .....: 19 Average Function lLOC .: 7.57 ------ ----- ----- ------ ------ ----- Max Function Parameters: 1 Avg Function Parameters: 0.57 Max Function Returns ..: 5 Avg Function Returns ..: 2.00 Max Interface Complex. : 6 Avg Interface Complex. : 2.57 Max Cyclomatic Complex.: 4 Avg Cyclomatic Complex.: 2.14 Max Total Complexity ..: 10 Avg Total Complexity ..: 4.71 ------------------------------------------------------------------------ ~~ File Keywords and Metrics ~~ --------------- LOC --------------- case, break .........: 0, 1 Lines of Code (LOC) .: 154 if, else ............: 6, 3 Lines of just { or } : 62 goto, return ........: 0, 10 Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0 Effective LOC (eLOC) : 92 macros, struct, union: 0, 0, 0 Code Statement (lLOC): 62 class, interface ....: 1, 0 -------------- Lines -------------- template, friend ....: 0, 0 Blank Lines .........: 23 namespace, package ..: 0, 0 Comment Lines .......: 3 func, virtual, inline: 7, 0, 0 Total Logical Lines .: 180 Memory alloc, free ..: 0, 0 Total Physical Lines : 180 Memory new, delete ..: 9, 0 ------------ Key Words ------------ ------------- Analysis ------------ Literal Strings .....: 16 Paren Count (,) .....: 76, 76 #include, import ....: 0, 7 Brace Count {,} .....: 31, 31 #define, typedef ....: 0, 0 Bracket Count [,] ...: 3, 3 const, enum .........: 0, 0 Chars/NBLine, Notices: 15, 18 do, while ...........: 0, 1 Code, eCode Lines ...: 85.6%, 51.1% switch, default .....: 0, 0 Comment, Blank Lines : 1.7%, 12.8% for .................: 1 Characters, Spaces ..: 68.7%, 31.3% ________________________________________________________________________ End of File: Rolodex.java ~~ Total Metrics For 2 Files ~~ ------------------------------------------------------------------------ ~~ Total Project Summary ~~ LOC 228 eLOC 134 lLOC 88 Comment 3 Lines 264 ------------------------------------------------------------------------ ~~ Project Functional Metrics ~~ Sorted By Name Function: rolodex.Contact.Contact Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Contact.Contact Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Contact.getName Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Contact.if Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Contact.main Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 LOC 4 eLOC 2 lLOC 2 Comment 0 Lines 4 Function: rolodex.Contact.setName Complexity Param 0 Return 1 Cyclo Vg 4 Total 5 LOC 26 eLOC 14 lLOC 9 Comment 0 Lines 26 Function: rolodex.Contact.show Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Contact.toString Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Rolodex.Rolodex Complexity Param 0 Return 1 Cyclo Vg 1 Total 2 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Rolodex.add Complexity Param 1 Return 1 Cyclo Vg 1 Total 3 LOC 3 eLOC 1 lLOC 1 Comment 0 Lines 3 Function: rolodex.Rolodex.addContacts Complexity Param 0 Return 1 Cyclo Vg 3 Total 4 LOC 17 eLOC 9 lLOC 6 Comment 0 Lines 17 Function: rolodex.Rolodex.close Complexity Param 1 Return 4 Cyclo Vg 1 Total 6 LOC 35 eLOC 21 lLOC 15 Comment 1 Lines 40 Function: rolodex.Rolodex.main Complexity Param 1 Return 1 Cyclo Vg 3 Total 5 LOC 20 eLOC 12 lLOC 9 Comment 0 Lines 23 Function: rolodex.Rolodex.open Complexity Param 1 Return 5 Cyclo Vg 4 Total 10 LOC 51 eLOC 29 lLOC 19 Comment 2 Lines 58 Function: rolodex.Rolodex.show Complexity Param 0 Return 1 Cyclo Vg 2 Total 3 LOC 6 eLOC 2 lLOC 2 Comment 0 Lines 6 Total: Functions LOC 183 eLOC 97 lLOC 70 InCmp 29 CycloCmp 26 ------------------------------------------------------------------------ ~~ Project Functional Analysis ~~ Total Functions .......: 15 Total Physical Lines ..: 198 Total LOC .............: 183 Total eLOC ............: 97 Total lLOC ............: 70 Total Cyclomatic Comp. : 26 Total Interface Comp. .: 29 Total Parameters ......: 7 Total Return Points ...: 22 Total Comment Lines ...: 3 Total Blank Lines .....: 12 ------ ----- ----- ------ ------ ----- Avg Physical Lines ....: 13.20 Avg LOC ...............: 12.20 Avg eLOC ..............: 6.47 Avg lLOC ..............: 4.67 Avg Cyclomatic Comp. ..: 1.73 Avg Interface Comp. ...: 1.93 Avg Parameters ........: 0.47 Avg Return Points .....: 1.47 Avg Comment Lines .....: 0.20 ------ ----- ----- ------ ------ ----- Max LOC ...............: 51 Max eLOC ..............: 29 Max lLOC ..............: 19 Max Cyclomatic Comp. ..: 4 Max Interface Comp. ...: 6 Max Parameters ........: 1 Max Return Points .....: 5 Max Comment Lines .....: 2 Max Total Lines .......: 58 ------ ----- ----- ------ ------ ----- Min LOC ...............: 3 Min eLOC ..............: 1 Min lLOC ..............: 1 Min Cyclomatic Comp. ..: 1 Min Interface Comp. ...: 1 Min Parameters ........: 0 Min Return Points .....: 1 Min Comment Lines .....: 0 Min Total Lines .......: 3 ------------------------------------------------------------------------ ~~ Project Class Metrics ~~ Sorted By Name Class: rolodex.Contact Attributes Publ 0 Prot 0 Private 3 Total 3 Methods Publ 7 Prot 0 Private 1 Total 8 Complexity Param 3 Return 8 Cyclo Vg 11 Total 22 LOC 69 eLOC 37 lLOC 21 Comment 0 Lines 77 Class: rolodex.Rolodex Attributes Publ 0 Prot 0 Private 1 Total 1 Methods Publ 7 Prot 0 Private 0 Total 7 Complexity Param 4 Return 14 Cyclo Vg 15 Total 33 LOC 146 eLOC 84 lLOC 54 Comment 3 Lines 169 Total: All Classes Attributes Publ 0 Prot 0 Private 4 Total 4 Methods Publ 14 Prot 0 Private 1 Total 15 Complexity Param 7 Return 22 Cyclo Vg 26 Total 55 LOC 215 eLOC 121 lLOC 75 Comment 3 Lines 246 ------------------------------------------------------------------------ ~~ Project Class Analysis ~~ Total Classes .........: 2 Total Methods .........: 15 Total Public Methods ..: 14 Total Public Attributes: 0 Total Protected Methods: 0 Total Protected Attrib.: 0 Total Private Methods .: 1 Total Private Attrib. .: 4 Total Physical Lines ..: 246 Total LOC .............: 215 Total eLOC ............: 121 Total lLOC ............: 75 Total Cyclomatic Comp. : 26 Total Interface Comp. .: 29 Total Parameters ......: 7 Total Return Points ...: 22 Total Comment Lines ...: 3 Total Blank Lines .....: 28 ------ ----- ----- ------ ------ ----- Avg Physical Lines ....: 123.00 Avg Methods ...........: 7.50 Avg Public Methods ....: 7.00 Avg Public Attributes .: 0.00 Avg Protected Methods .: 0.00 Avg Protected Arrtib. .: 0.00 Avg Private Methods ...: 0.50 Avg Private Attributes : 2.00 Avg LOC ...............: 107.50 Avg eLOC ..............: 60.50 Avg lLOC ..............: 37.50 Avg Cyclomatic Comp. ..: 13.00 Avg Interface Comp. ...: 14.50 Avg Parameters ........: 3.50 Avg Return Points .....: 11.00 Avg Comment Lines .....: 1.50 ------ ----- ----- ------ ------ ----- Max Physical Lines ....: 169 Max Methods ...........: 8 Max Public Methods ....: 7 Max Public Attributes .: 0 Max Protected Methods .: 0 Max Protected Arrtib. .: 0 Max Private Methods ...: 1 Max Private Attributes : 3 Max LOC ...............: 146 Max eLOC ..............: 84 Max lLOC ..............: 54 Max Cyclomatic Comp. ..: 15 Max Interface Comp. ...: 18 Max Parameters ........: 4 Max Return Points .....: 14 Max Comment Lines .....: 3 ------ ----- ----- ------ ------ ----- Min Physical Lines ....: 77 Min Methods ...........: 7 Min Public Methods ....: 7 Min Public Attributes .: 0 Min Protected Methods .: 0 Min Protected Arrtib. .: 0 Min Private Methods ...: 0 Min Private Attributes : 1 Min LOC ...............: 69 Min eLOC ..............: 37 Min lLOC ..............: 21 Min Cyclomatic Comp. ..: 11 Min Interface Comp. ...: 11 Min Parameters ........: 3 Min Return Points .....: 8 Min Comment Lines .....: 0 ------------------------------------------------------------------------ ~~ Project Namespace/Package Metrics ~~ Sorted By Name Namespace/Package: rolodex Total Classses 2 Total Functions 15 Avg Func/Class 7.50 Attributes Publ 0 Prot 0 Private 4 Total 4 Methods Publ 14 Prot 0 Private 1 Total 15 Complexity Param 7 Return 22 Cyclo Vg 26 Total 55 LOC 215 eLOC 121 lLOC 75 Comment 3 Lines 246 Total: All Namespaces/Packages Total Classses 2 Total Functions 15 Avg Func/Class 7.50 Attributes Publ 0 Prot 0 Private 4 Total 4 Methods Publ 14 Prot 0 Private 1 Total 15 Complexity Param 7 Return 22 Cyclo Vg 26 Total 55 LOC 215 eLOC 121 lLOC 75 Comment 3 Lines 246 ------------------------------------------------------------------------ ~~ Project Namespace/Package Analysis ~~ Total Namespace/Package: 1 Total Classes .........: 2 Total Methods .........: 15 Total Public Methods ..: 14 Total Public Attributes: 0 Total Protected Methods: 0 Total Protected Attrib.: 0 Total Private Methods .: 1 Total Private Attrib. .: 4 Total Physical Lines ..: 246 Total LOC .............: 215 Total eLOC ............: 121 Total lLOC ............: 75 Total Cyclomatic Comp. : 26 Total Interface Comp. .: 29 Total Parameters ......: 7 Total Return Points ...: 22 Total Comment Lines ...: 3 Total Blank Lines .....: 28 ------ ----- ----- ------ ------ ----- Avg Classes ...........: 2.00 Avg Methods ...........: 15.00 Avg Public Methods ....: 14.00 Avg Public Attributes .: 0.00 Avg Protected Methods .: 0.00 Avg Protected Arrtib. .: 0.00 Avg Private Methods ...: 1.00 Avg Private Attributes : 4.00 Avg LOC ...............: 215.00 Avg eLOC ..............: 121.00 Avg lLOC ..............: 75.00 Avg Cyclomatic Comp. ..: 26.00 Avg Interface Comp. ...: 29.00 Avg Parameters ........: 7.00 Avg Return Points .....: 22.00 Avg Comment Lines .....: 3.00 ------ ----- ----- ------ ------ ----- Max Classes ...........: 2 Max Methods ...........: 15 Max Public Methods ....: 14 Max Public Attributes .: 0 Max Protected Methods .: 0 Max Protected Arrtib. .: 0 Max Private Methods ...: 1 Max Private Attributes : 4 Max LOC ...............: 215 Max eLOC ..............: 121 Max lLOC ..............: 75 Max Cyclomatic Comp. ..: 26 Max Interface Comp. ...: 29 Max Parameters ........: 7 Max Return Points .....: 22 Max Comment Lines .....: 3 ------ ----- ----- ------ ------ ----- Min Classes ...........: 2 Min Methods ...........: 15 Min Public Methods ....: 14 Min Public Attributes .: 0 Min Protected Methods .: 0 Min Protected Arrtib. .: 0 Min Private Methods ...: 1 Min Private Attributes : 4 Min LOC ...............: 215 Min eLOC ..............: 121 Min lLOC ..............: 75 Min Cyclomatic Comp. ..: 26 Min Interface Comp. ...: 29 Min Parameters ........: 7 Min Return Points .....: 22 Min Comment Lines .....: 3 ------------------------------------------------------------------------ ~~ Project Keywords and Metrics ~~ --------------- LOC --------------- case, break .........: 0, 3 Lines of Code (LOC) .: 228 if, else ............: 9, 4 Lines of just { or } : 94 goto, return ........: 0, 12 Lines of just ( or ) : 0 exit, _exit, abort ..: 0, 0, 0 Effective LOC (eLOC) : 134 macros, struct, union: 0, 0, 0 Code Statement (lLOC): 88 class, interface ....: 2, 0 -------------- Lines -------------- template, friend ....: 0, 0 Blank Lines .........: 33 namespace, package ..: 0, 1 Comment Lines .......: 3 func, virtual, inline: 15, 0, 0 Total Logical Lines .: 264 Memory alloc, free ..: 0, 0 Total Physical Lines : 264 Memory new, delete ..: 13, 0 ------------ Key Words ------------ ------------- Analysis ------------ Literal Strings .....: 21 Paren Count (,) .....: 105, 105 #include, import ....: 0, 11 Brace Count {,} .....: 47, 47 #define, typedef ....: 0, 0 Bracket Count [,] ...: 4, 4 const, enum .........: 0, 0 Chars/NBLine, Notices: 14, 31 do, while ...........: 0, 2 Code, eCode Lines ...: 86.4%, 50.8% switch, default .....: 0, 0 Comment, Blank Lines : 1.1%, 12.5% for .................: 1 Characters, Spaces ..: 68.9%, 31.1% ------------------------------------------------------------------------ ~~ File Summary ~~ C Source Files *.c ....: 0 C/C++ Include Files *.h: 0 C++ Source Files *.c* .: 0 C++ Include Files *.h* : 0 Other Source Files ....: 0 Java Source File *.jav*: 2 Total File Count ......: 2 ________________________________________________________________________ ~~ Performance Benchmark ~~ A process benchmark has been determined for this metrics analysis. The elapsed time for processing is effected by the I/O response of standard out or the redirection device. The fastest RSM benchmarks result from redirecting the output to a file on a local file system. The benchmark is intended for comparative purposes and is not designed to yield a definitive result. Process Timer ------------------------------- Elapsed Time : 0.050 s Performance Benchmark: 5280 Physical Lines Processed/s : 96900 Characters Parsed/s ________________________________________________________________________