...
首页> 外文期刊>Electronic Communications of the EASST >Active Clones: Source Code Clones at Runtime
【24h】

Active Clones: Source Code Clones at Runtime

机译:活动克隆:运行时的源代码克隆

获取原文

摘要

Code cloning is a common programming practice, and there have been aconsiderable amount of research that investigated the implications of code clones onsoftware maintenance using static analysis. However, little has been done to investigatethe runtime implications of code cloning. In this paper we investigate sourcecode clones at runtime, referring to clones as ‘active clones’ if they are invokedwhen a software system is in use. For example, if a particular use u of a systemresults in a clone c being invoked, we say that clone c is active with respect to useu. From this definition and given a set of uses fu1;u2; :::g and clones fc1;c2; :::gwe are able to identify the extent clones are active at runtime and analyze activeclone resource use (e.g., CPU time) and define and calculate a set of active clonemetrics to provide insights into source code cloning implications at runtime. We developeda hybrid static and dynamic analysis technique for detecting and analysingactive clones, and conducted an empirical study on five software systems (HSQLDB,JHotDraw, RText, jEdit and UniCentaoPOS) to validate our approach. We found asmall portion of clones are active during a typical use of a software system, and thatactive clones have the potential for guiding a software developer’s code inspectionactivity during a software maintenance task.
机译:代码克隆是一种常见的编程实践,并且有大量研究使用静态分析研究了代码克隆对软件维护的影响。但是,研究代码克隆对运行时的意义还很少。在本文中,我们研究了运行时的源代码克隆,将这些克隆称为“活动克隆”(如果在使用软件系统时调用了它们)。例如,如果系统的特定用途u导致克隆c被调用,那么我们说克隆c对于useu是活动的。根据此定义并给出一组用法fu1; u2;。 ::: g并克隆fc1; c2; ::: gwe能够确定克隆在运行时处于活动状态的程度,并分析activeclone资源的使用情况(例如CPU时间),并定义和计算一组活动的克隆指标,以洞悉运行时的源代码克隆含义。我们开发了一种用于检测和分析活动克隆的混合静态和动态分析技术,并对五个软件系统(HSQLDB,JHotDraw,RText,jEdit和UniCentaoPOS)进行了实证研究,以验证我们的方法。我们发现一小部分克隆在软件系统的典型使用过程中处于活动状态,并且该活动的克隆有可能在软件维护任务期间指导软件开发人员的代码检查活动。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号