- linux安装:
- 首先sudo yum install -y gtk3 alsa-lib libXScrnSaver nss
- 然后注册Intel账户,并下载vtune_amplifier_2019_update8.tar.gz
- 解压后cd到解压目录,然后执行:sudo sh install.sh,按照过程一步步来就行
- windows安装VTune_Amplifier_2019_update8_setup.exe,可以图形界面查看分析结果
- 使用,参考https://software.intel.com/en-us/vtune-help-command-line-interface:
- 查看CPU分析帮助:./amplxe-cl -help collect hotspots
-
查看内存分析帮助:./amplxe-cl -help collect memory-access
- 分析CPU并且收集堆栈信息:./amplxe-cl -collect hotspots -knob enable-stack-collection=true -knob sampling-mode=sw -r test_hot -target-pid=10540(User-Mode Sampling)
- 分析CPU并且收集堆栈信息:./amplxe-cl -collect hotspots -knob enable-stack-collection=true -knob sampling-mode=hw -r test_hot -target-pid=10540(Hardware Event-Based Sampling)
- 分析内存:./amplxe-cl -collect memory-access -r test_memory -target-pid=10540(必须是实体机才行)
- 把分析结果下载到本地,使用windows版本打开即可查看结果
vtune使用
最新推荐文章于 2024-04-18 10:45:49 发布