1 概述
1.1 简介
VTune性能分析器采用先进的评测技术查找程序瓶颈与热点,在开发过程中使用VTune性能分析器可以产生更快速、更高效的代码,帮助提高软件性能。
1.2 测试环境
硬件环境:Marvell PXA310平台
软件环境:Windows Mobile 6.0 Standard,Marvell PXA310 BSP
2 Intel VTune Performance Analyzer 8.0 for Windows
请参考http://www3.intel.com/cd/software/products/apac/zho/275872.htm
3 Marvell Performance Data Collector
3.1 概述
Marvell Performance Data Collector是Intel VTune Performance Analyzer的插件,用来采集数据供Intel VTune Performance Analyzer分析。
3.2 安装
3.2.1 Host端安装
1.确保Host端已经安装Intel VTune Performance Analyzer。解压Marvell提供的MPDC_WM_6_PXA3xx_V1_0_xxx.zip。在下面章节中,解压文件夹统称为<Host_Install_Dir>。
2.运行Install.bat。
3.2.2Target端安装
1.将<Host Install Dir>/RDC for PXA3xx - <OS Name>/Target/TargetSetup/目录下的.cab文件拷贝到Target端。
2.在Target端运行.cab文件开始安装。
4 采样过程
4.1 Target Local Data Collector模式
1.运行Target端的VTuneTDC.exe(默认安装路径/Program Files/MPDC)。
2.打开“File->New Activity”然后选择Activity类型(Hotspot或者Statistical Call Graph),在本例子中选择Hotspot。弹出对话框,点击“Finish”完成配置(具体配置可以参考相关文档)。
3.打开“Sampling->Start”开始采样。
4.采样完成后,将采样文件(.rsf文件和.ref文件)从Target设备拷贝到Host端。
5.命令行下使用BuildTbxXSC.exe工具将采样文件(.rsf文件和.ref文件)合并成一个.tb5文件。
命令如下:BuildTbxXSC xx.rsf xx.ref xx.tb5
6.使用Intel VTune Performance Analyzer打开.tb5文件,可以查看采样分析结果。(Intel VTune Performance Analyzer的使用请参考它的帮助文件)
4.2 Standalone Remote Data Collection模式
1.通过Microsoft ActiveSync连接Target端和Host端。
2.在Target端运行VTRemoteSvr.exe。
3.在Host端运行XscVTuneHostDC.exe。打开“Settings->Connection Setting”选择TCP/IP项,输入“169.254.2.1”(通过Remote Registry Editor查找<Target Device >/HKEY_LOCAL_MACHINE/Comm/DTPT/DTPTCLI_ADDR),点击“确定”连接到Target端。
4.打开“File->New Activity”然后选择Activity类型(Hotspot或者Statistical Call Graph),在本例子中选择Hotspot。弹出对话框,点击“Finish”完成配置(具体配置可以参考相关文档)。
5. 打开“Sampling->Start”开始采样。
6.采样完成后,使用Intel VTune Performance Analyzer打开C:/VTune文件夹下的.tb5文件,可以查看采样分析结果。(Intel VTune Performance Analyzer的使用请参考它的帮助文件)
5 相关文档
-
Marvell Performance Data Collector for Microsoft Windows Mobile 6(MV-S400080-00)
-
Intel VTune Performance Analyzer的使用请参考它的帮助文件