摘要
本文提出一种基于对象引用关系的Java程序内存行为分析方法.与传统的通过内存消耗的大小来确定程序中数据结构的重要性并分析相关内存行为的方法不同,本文方法同时考虑内存消耗和内存支配两个因素来确定一个数据结构在程序内存行为中的重要性,通过研究数据结构之间在内存使用上的支配关系和对数据结构进行引用分析,得到程序中重要的内存行为.实验结果表明该方法能有效地分析程序的内存行为,且对比其它方法能提供更加准确的内存行为分析结果.
An approach was proposed to analyze the memory behavior of Java programs based on object reference relations. Unlike traditional methods that just consider the factor of memory consumption to find out program 's important data structures and analyze their memory behavior,our approach considers both memory consumption and memory domination to decide whether a data structure is important,and get the important memory behaviors via analyzes the memory dominance relationship between data structures and references analysis. Experimental results showthat the proposed approach is effective,and can get more precise analysis results than other methods.
出处
《电子学报》
EI
CAS
CSCD
北大核心
2015年第7期1336-1343,共8页
Acta Electronica Sinica
基金
国家自然科学基金(No.61340037)
江苏省333高层次人才培养工程
江苏省高校自然科学研究(No.12KJB520014)
南通市应用研究计划(No.BK2014055)
广西高等学校高水平创新团队及卓越学者计划
关键词
程序理解
内存行为
引用分析
度量策略
program comprehension
memory behavior
reference analysis
measurement strategy