计算机应用与软件
計算機應用與軟件
계산궤응용여연건
COMPUTER APPLICATIONS AND SOFTWARE
2013年
10期
284-287,321
,共5页
嵌入式交叉环境%性能分析%插桩%函数调用
嵌入式交扠環境%性能分析%插樁%函數調用
감입식교차배경%성능분석%삽장%함수조용
Embedded cross environment%Performance profiling%Instrument%Function call
通过对当前业界常见软件性能分析方法和常用性能分析工具技术特点的分析,根据嵌入式系统交叉开发方法的特点,以GNU性能分析工具gprof为切入点,针对其在性能数据采集和处理方面的不足,设计并实现一个面向嵌入式领域交叉开发环境的嵌入式性能分析工具Cross-Profiler。该工具能够针对以GCC作为交叉编译器,运行在嵌入式交叉环境下的应用软件进行性能分析,统计软件中各函数的执行时间、被调用次数、调用关系链以及执行过程中的函数堆栈开销等性能信息,从而有效帮助定位嵌入式软件的执行热点与性能瓶颈,为改善软件性能提供依据。同时,对Cross-Profiler的处理结果进行了可视化的输出设计,增强了易用性、可移植性和扩展性。
通過對噹前業界常見軟件性能分析方法和常用性能分析工具技術特點的分析,根據嵌入式繫統交扠開髮方法的特點,以GNU性能分析工具gprof為切入點,針對其在性能數據採集和處理方麵的不足,設計併實現一箇麵嚮嵌入式領域交扠開髮環境的嵌入式性能分析工具Cross-Profiler。該工具能夠針對以GCC作為交扠編譯器,運行在嵌入式交扠環境下的應用軟件進行性能分析,統計軟件中各函數的執行時間、被調用次數、調用關繫鏈以及執行過程中的函數堆棧開銷等性能信息,從而有效幫助定位嵌入式軟件的執行熱點與性能瓶頸,為改善軟件性能提供依據。同時,對Cross-Profiler的處理結果進行瞭可視化的輸齣設計,增彊瞭易用性、可移植性和擴展性。
통과대당전업계상견연건성능분석방법화상용성능분석공구기술특점적분석,근거감입식계통교차개발방법적특점,이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 tool 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 scalable.