Automatic Extraction of Code Dependency in Virtual Reality Software

Automatic Extraction of Code Dependency in Virtual Reality Software
复制标题

DOI:
10.1109/icpc52881.2021.00043
复制
发表时间:
2021-05
期刊:
2021 IEEE/ACM 29th International Conference on Program Comprehension (ICPC)
影响因子:
--
通讯作者:
Jacinto Molina;Xue Qin;Xiaoyin Wang
Jacinto Molina;Xue Qin;Xiaoyin Wang
中科院分区:
其他
文献类型:
--
作者:
Jacinto Molina;Xue Qin;Xiaoyin Wang

文献摘要

被引文献

相似文献

虚拟现实(VR)是一项新兴技术,在教育、导航、远程通信、游戏等领域有着广泛的应用。在虚拟现实软件中,VR对象扮演着重要的角色,它是与脚本文件相连的图形单元,经常需要与脚本文件中的相关源代码一起更新。然而,传统的代码依赖分析工具只检测直接的源代码依赖,几乎无法检测跨VR对象的代码依赖。在本文中,我们提出了一种新的技术,VRDepend,以提取虚拟现实软件项目中的代码-资产依赖。具体地,我们提取了(1)VR对象与脚本文件之间的直接关联,(2)VR对象之间的组成关系,(3)脚本与VR对象之间的事件触发关系。我们基于从文件共同修订中提取的脚本依赖来评估VRDepend。我们的评估结果表明,VRDepend可以覆盖我们的主题VR软件项目历史提交中的%的脚本文件依赖。
Virtual Reality (VR) is an emerging technique with various applications in education, navigation, remote communication, and gaming. In virtual reality software, VR objects, which are graphics units linking with script files, play an important role and they often need to be updated together with correlated source code in the script files. However, traditional code dependency analysis tools detect only direct source code dependencies and can hardly detect code dependency across VR objects. In this paper, we propose a novel technique, VRDepend, to extract code-asset dependency within VR software projects. In particular, we extract (1) the direct association between VR objects and script files, (2) the compositional relations between VR objects, (3) event triggering relations between scripts and VR objects. We evaluated VRDepend based on script dependency extracted from file co-revisions. Our evaluation results show that VRDepend can cover 64% script file dependencies in historical commits of our subject VR software projects.