摘要
通过对当前业界常见软件性能分析方法和常用性能分析工具技术特点的分析,根据嵌入式系统交叉开发方法的特点,以GNU性能分析工具gprof为切入点,针对其在性能数据采集和处理方面的不足,设计并实现一个面向嵌入式领域交叉开发环境的嵌入式性能分析工具Cross-Profiler。该工具能够针对以GCC作为交叉编译器,运行在嵌入式交叉环境下的应用软件进行性能分析,统计软件中各函数的执行时间、被调用次数、调用关系链以及执行过程中的函数堆栈开销等性能信息,从而有效帮助定位嵌入式软件的执行热点与性能瓶颈,为改善软件性能提供依据。同时,对Cross-Profiler的处理结果进行了可视化的输出设计,增强了易用性、可移植性和扩展性。
Through analysing current common software performance analysis methods and the technical characteristics of performance analysis tools in industry, and according to the features of cross-development method for embedded systems, we design and implement an embedded performance analysis tool called Cross-Profiler for cross development environment in embedded field. The Cross-Profiler comes from gprof which is the performance analysis fool of GNU, and is targeted at its deficiencies in performance data acquisition and processing. This profiler can carry out performance analyses targeted at the applications which use GCC as cross-compiler and work in embedded cross environment, count the performance information of each function in applications such as the execution time, the times to be called, calling relations link, as well as the stacks cost of functions during execution process, so as to effectively help to locate the execution hot spots and performance bottlenecks of the embedded software, and to provide the basis for improving the software performance. Meanwhile, we give the visualised output design for the processing results of Cross-Profiler, and enhance its properties in easy to use, portable and sealable.
出处
《计算机应用与软件》
CSCD
北大核心
2013年第10期284-287,321,共5页
Computer Applications and Software
关键词
嵌入式交叉环境
性能分析
插桩
函数调用
Embedded ci:oss environment Performance profiling Instrument Function call