计算机科学 ›› 2006, Vol. 33 ›› Issue (4): 292-294.

• • 上一篇    

基于动态指令编译的软件性能分析方法

  

  • 出版日期:2018-11-17 发布日期:2018-11-17

  • Online:2018-11-17 Published:2018-11-17

摘要: 进行精确的软件性能分析,需要在代码中插入测量和控制代码,并根据具体运行状态动态的检查多个不同的参数。但是,用静态类型的程序语言,如C语言等书写的代码,一经编译和链接,其处理逻辑即不可更改。因此,在无法获取源代码或者重新编译和重新启动代价较高的应用中,对软件进行动态性能分析非常困难。本文将介绍一种在软件运行时刻动态插入监控点的动态指令编译技术对软件进行监控,从而在上述情况下达到对软件的监控目的。这种方法是基于Dynlnst API和PAPI技术的。实验表明,这种方法在去掉了对源代码的依赖的情况下,仍然与在源

关键词: 动态指令编译 性能分析 Dyninst API PAPI 硬件性能计数器

Abstract: In wish to do dynamic software performance analysis, many different qualities should be checked according to the running context, and survey and control instructions must insert into code dynamically. But the inner process logic of a program written by st

Key words: Dynamic instruments compiling, Hardware performance counter, PAPI, Dyninst API

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!