Prioritizing Test Cases for Memory Leaks in Android Applications

来源 :计算机科学技术学报(英文版) | 被引量 : 0次 | 上传用户:mengdewei6677
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
Mobile applications usually can only access limited amount of memory. Improper use of the memory can cause memory leaks, which may lead to performance slowdowns or even cause applications to be unexpectedly killed. Although a large body of research has been devoted into the memory leak diagnosing techniques after leaks have been discovered, it is still challenging to find out the memory leak phenomena at first. Testing is the most widely used technique for failure discovery. However, traditional testing techniques are not directed for the discovery of memory leaks. They may spend lots of time on testing unlikely leaking executions and therefore can be ine?cient. To address the problem, we propose a novel approach to prioritize test cases according to their likelihood to cause memory leaks in a given test suite. It firstly builds a prediction model to determine whether each test can potentially lead to memory leaks based on machine leing on selected code features. Then, for each input test case, we partly run it to get its code features and predict its likelihood to cause leaks. The most suspicious test cases will be suggested to run at first in order to reveal memory leak faults as soon as possible. Experimental evaluation on several Android applications shows that our approach is effective.
其他文献
我院对128例持续性枕横位或枕后位的产妇在产程中适时徒手旋转胎头,矫正胎头位置异常成功率达79%。现报告如下。1资料与方法1.1一般资料:我院2006年10月至2008年12月对128例
患者 ,女 ,10个月。发现腹部进行性膨隆 2月余。查体 ,腹部明显膨隆 ,以上中腹为著 ,无肠型及蠕动波腹式呼吸受限 ,全腹柔软 ,上中部可触及囊性包块 ,其大小约 18cm× 15cm ,无触
2019年的政府工作报告中,提出了许多重要改革举措。引人注目的是,其中不少是来自基层探索。比如,在为“政府要坚决把不该管的事项交给市场”开出的“药方”中,“一网通办”来自上海,“不见面办理”来自江苏,“最多跑一次”则来自浙江,让人看到基层经验中蕴藏的改革伟力。  习近平总书记强调,要“激活基层经验”,把鼓励基层改革创新、大胆探索作为抓改革落地的重要方法。基层探索,一直以来都是中国改革的重要活力之源
期刊
该文从挂篮荷载计算、施工流程、支座及临时固结施工、挂篮安装及试验、合拢段施工、模板制作安装、钢筋安装、混凝土的浇筑及养生、测量监控等方面人手,介绍了S226海滨大桥
期刊
我院2006-2008年应用肌间沟+腋路联合法臂丛神经阻滞进行上肢手术4 243例,效果良好,现报告如下.rn1 资料与方法rn1.1 一般资料:我院臂丛神经阻滞占麻醉总数的66.58%,从2006-2
龙福麦12号(原品系代号龙辐97-0189)是黑龙江省农业科学院作物育种研究所小麦辐射与生物技术育种研究室用1.5万rad的γ射线照射佳5品系的干种子经系统选育而成春小麦新品种,
 一、青墩水库概况  该库养鱼水面 3420亩,浮游生物量 0.246毫克 /升,透明度为 10~ 30厘米,贫营养类型库体,水质较瘦。但同时该库野杂鱼虾丰富,平均年产量在 10吨以上。从这些情
该文从挂篮荷载计算、施工流程、支座及临时固结施工、挂篮安装及试验、合拢段施工、模板制作安装、钢筋安装、混凝土的浇筑及养生、测量监控等方面人手,介绍了S226海滨大桥
期刊
我院2007年7月至2009年6月,对放置宫内节育器(I UD)的妇女进行定期随访(术后1、3、6、12个月)统计脱落率、妊娠率、不良反应率及续用率,现将结果分析报告如下。1资料与方法1.
患者 ,女 ,2 6岁。 1年前发现双侧颈部无痛性肿物 ,肿物逐渐增大 ,时有发热 ,约 37~ 39℃。近 2 0d来发高热 ,最高体温达 40℃ ,轻度憋气 ,咳嗽 ,不咳痰。查体 :双侧颈部可触及