An Extensible Metrics Extraction Environment for Object-Oriented Programming Languages

  • Authors:
  • T. J. Harmer;F. G. Wilkie

  • Affiliations:
  • -;-

  • Venue:
  • SCAM '02 Proceedings of the Second IEEE International Workshop on Source Code Analysis and Manipulation
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

In this paper the enhancements to an existing production-quality compiler to facilitate the collection of complexity metrics as an integral part of the compilation and build process are described. An object oriented programming language meta-model is presented. This meta-model is used in a relational database schema and enables a language neutral form of a compilation unit of source code or system of units to be stored. We have used C language routines with embedded SQL to calculate a suite of 11 complexity metrics for each class stored in the database. We present the full implementation of one of these routines. The resulting metrics extraction tool is highly extensible, readily facilitating incorporation of new object oriented programming languages and new metrics.