透過您的圖書館登入
IP:3.138.174.174
  • 學位論文

一個針對嵌入式軟體的追蹤和效能分析技術

Developing New Tracing and Performance Analysis Techniques for Embedded Applications

指導教授 : 洪士灝

摘要


對於任何的應用程式,效能評估是一件很重要的工作。然而,許多用來測量效能的技術及剖析工具都有硬體相依(hardware dependent)或是執行環境 (如作業系統) 相依的問題。在一個全新的或是比較不普及的平台開發程式的工程師,很可能沒有合適的分析工具可以用來分析該平台上應用程式的效能。此一現象,在嵌入式系統的開發上屢見不鮮,因此,設計出一個不需相依於特定硬體或是執行環境的效能分析工具是有其重要性的。   本篇論文描述一個不用任何硬體,在高階語言 (source level) 上插入額外程式碼的分析技術。我們將這個技術實作在Moduletracer工具集之中,配合一個插程式碼工具 (CIL), 以純軟體的方式,不需特定硬體或是執行環境,即能產生記錄 (trace) 和分析記錄,幫助其使用者可以了解一個系統中,應用程式與作業系統的活動,以利尋找潛在的效能問題。

並列摘要


Performance evaluation is key to many computer applications. Many techniques and profiling tools are available for measuring performance, but most of them depend on the hardware and the software on which they run. For a new platform, or a platform which is not popular, programmers usually suffer from few analysis tools, which has been a serious problem for application development on many embedded systems. Thus, a performance analysis tool with the software mechanism is quite important for developing embedded applications. This thesis describes a software mechanism for analyzing program performance on a wide range of platforms via code instrumentation at the source level. We implement this mechanism in a pure software profiling toolkit, called Moduletracer, which works with a public-domain tool, CIL, to carry out code instrumentation for C programs. The toolkit aids programmers in understanding the behavior of applications by generating and analyzing traces and identify potential performance problems.

參考文獻


[2] G. Ammons, T. Ball, J. R. Larus, Exploiting Hardware Performance Counters with Flow and Context Sensitive Profiling, Proceedings of the ACM SIGPLAN 1997 Conference on Programming Language Design and Implementation, p.85-96, June 16-18, 1997.
[5] M. Heath, J. Ethridge, Visualizing the Performance of Parallel Programs, IEEE Software, Vol. 8, No. 5, 1991.
[7] G. C. Necula, S. McPeak, S. P. Rahul, W. Weimer, CIL: Intermediate Language and Tools for Analysis and Transformation of C programs, Proceedings of Conference of Compiler Construction, 2002.
[16] C. Young, The Harvard Atom-like Tool (Halt) Manual. Harvard University, 1998.
[18] G. Ammons, T. Ball, and J. R. Larus, Exploiting Hardware Performance Counters with Flow and Context Sensitive Profiling, SIGPLAN Conference on Programming Language Design and Implementation, pages 85-96, 1997.

延伸閱讀