Profiling with AspectJ
Profiling with AspectJ
复制标题
使用 AspectJ 进行分析
DOI:
--
复制
发表时间:
2005
期刊:
影响因子:
--
通讯作者:
P. Kelly
中科院分区:
文献类型:
--
作者:
David J. Pearce;Matthew Webster;R. Berry;P. Kelly
This paper investigates whether AspectJ can be used for effic ient profiling of Java programs. Profiling differs from other applications of AOP (e.g. tracing), since it necessitates efficient and often complex interactions with the target program. As such, it was uncert ain whether AspectJ could achieve this goal. Therefore, we investigate four common profiling problems (heap usage, object lifetime, wasted time and time-spent) and report on how well AspectJ handles them. For each, we provide an efficient implementation, discuss any trade-offs or limitations and present the resul ts of an experimental evaluation into the costs of using it. Our conclusions are mixed. On the one hand, we findthat AspectJ is sufficiently expressive to describe the four profiling problems and reasonably effici ent in most cases. On the other hand, we find several limitations with the current AspectJ implementation that severely hamper its suitability for profiling.