A Metric Extraction Framework Based on a High-Level Description Language

Nowadays, many tools are available for metric extraction. However, extending these tools with new metrics or modifying the calculation of existing ones is often difficult, sometimes impossible. Indeed, many of them are black box tools. Others can be extended only by modifying third-party code. Moreover, metric specifications often lack precision, which leads to implementations that do not correspond necessarily to users’ expectations. In this paper, we propose a flexible approach for metric collection based on a metric description language that allows manipulating basic data extracted from the code. These data are mapped to a generic object-oriented meta-model that is language agnostic. This makes it easy to focus on the metric specification rather than language specific constructs. Metric specifications are interpreted automatically to extract their corresponding values for a target program.

[1]  F. George Wilkie,et al.  An extensible metrics extraction environment for object-oriented programming languages , 2002, Proceedings. Second IEEE International Workshop on Source Code Analysis and Manipulation.

[2]  Lionel C. Briand,et al.  A Unified Framework for Coupling Measurement in Object-Oriented Systems , 1999, IEEE Trans. Software Eng..

[3]  Michael Eichberg,et al.  QScope: an open, extensible framework for measuring software projects , 2006, Conference on Software Maintenance and Reengineering (CSMR'06).

[4]  Guy L. Steele,et al.  The Java Language Specification , 1996 .

[5]  James Gosling,et al.  The Java Language Specification, 3rd Edition , 2005 .

[6]  Antoine Beugnard,et al.  Method overloading and overriding cause encapsulation flaw: an experiment on assembly of heterogeneous components , 2006, SAC.

[7]  Fernando Brito e Abreu,et al.  A Formal Library for Aiding Metrics Extraction , 2003 .

[8]  Sallie M. Henry,et al.  Object-oriented metrics that predict maintainability , 1993, J. Syst. Softw..

[9]  Luigi Lavazza,et al.  Automated Measurement of UML Models: an open toolset approach , 2005, J. Object Technol..

[10]  Fernando Brito e Abreu,et al.  Evaluating the impact of object-oriented design on software quality , 1996, Proceedings of the 3rd International Software Metrics Symposium.

[11]  Miguel Goulão,et al.  Toward the Design Quality Evaluation of Object-Oriented Software Systems , 1995 .

[12]  Victor R. Basili,et al.  A Validation of Object-Oriented Design Metrics as Quality Indicators , 1996, IEEE Trans. Software Eng..

[13]  Tom Mens,et al.  A Graph-Based Metamodel for Object-Oriented Software Metrics , 2002, Electron. Notes Theor. Comput. Sci..

[14]  Cristina Marinescu,et al.  Towards a simplified implementation of object-oriented design metrics , 2005, 11th IEEE International Software Metrics Symposium (METRICS'05).

[15]  Fernando Brito e Abreu,et al.  An OCL-Based Formalization of the MOOSE Metric Suite , 2003 .

[16]  Sallie M. Henry,et al.  Predicting source-code complexity at the design stage , 1990, IEEE Software.

[17]  Chris F. Kemerer,et al.  A Metrics Suite for Object Oriented Design , 2015, IEEE Trans. Software Eng..