Intel VTune采样环境搭建

本文档详细介绍了如何在Marvell PXA310平台搭载的Windows Mobile 6.0环境中,搭建Intel VTune Performance Analyzer 8.0的采样环境。通过Marvell Performance Data Collector插件,分别在Target Local Data Collector和Standalone Remote Data Collection两种模式下进行性能采样,以识别和优化程序瓶颈。采样过程包括启动数据收集、分析采样文件,并最终使用Intel VTune查看和解析结果。
摘要由CSDN通过智能技术生成

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的使用请参考它的帮助文件
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

技术无疆

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值