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

A Metric Extraction Framework Based on a High-Level Description Language
复制标题

基于高级描述语言的度量提取框架

DOI:
--
复制
发表时间:
2009
期刊:
2009 Ninth IEEE International Working Conference on Source Code Analysis and Manipulation
影响因子:
--
通讯作者:
H. Sahraoui
H. Sahraoui
中科院分区:
--
文献类型:
--
作者:
E. Alikacem;H. Sahraoui

文献摘要

被引文献

相似文献

如今,许多工具可用于度量提取。然而,用新的指标扩展这些工具或修改现有指标的计算通常很困难,有时甚至是不可能的。事实上,其中许多都是黑箱工具。其他的只能通过修改第三方代码来扩展。此外,度量规范通常缺乏精确性,这导致实现不一定符合用户的期望。在本文中,我们提出了一个灵活的方法,度量收集的基础上的度量描述语言,允许操纵基本数据提取的代码。这些数据被映射到一个通用的面向对象的元模型,是语言不可知的。这使得关注度量规范而不是语言特定的构造变得容易。度量规范被自动解释,以提取目标程序的相应值。
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.