VTune

《VTune 开发者手册》

1. 安装

1.1 软件安装

# 1.解压
tar -zxvf filename.tar.gz
# 2.安装
cd dirname/
./install.sh

1.2 配置环境

csh/tcsh用户:source <install_dir>/amplxe-vars.csh
bash 用户: source <install_dir>/amplxe-vars.sh 默认情况下<install_dir>是:
root用户:/opt/intel/vtune_amplifier_xe_2018
非root用户: $HOME/intel/vtune_amplifier_xe_2018

2. 使用

2.1 图形界面

amplxe-gui

图形界面具体使用参考:《VTune 开发者手册》

2.2 命令行

2.2.1 使用方法:

amplxe-cl <-action> [-action-option] [-global-option] [[--] target [target options]]

常用action包括(具体使用方法请点击后阅读手册):

2.2.2 应用实例

  • 查看帮助
amplxe-cl -help [action-option]
  • 列出分析类型
# 1. 列出所支持的分析类型
amplxe-cl –collect-list
# 2. 列出可支持的报告类型
amplxe-cl –report-list
  • 热点收集
amplxe-cl -collect hotspots -result-dir r0001hs -- ./gsexample2a datafile.txt
amplxe-cl -collect concurrency -r r0002cc -search-dir all:rp=/home/ompPrimes -- ./ompPrime1.icc
amplxe-cl -collect locksandwaits -user-data-dir /tmp -r r0003lw -- ./ompPrime1.icc
amplxe-cl -collect lightweight-hotspots -r r0004lh -- ./primes.gcc
amplxe-cl -collect nehalem_memory-access -duration 10
amplxe-cl -collect lightweight-hotspots -target-process gnome-power-manager -duration 10
amplxe-cl -collect concurrency -duration n -target-process program
amplxe-cl -collect concurrency -duration n -target-pid pid
# 1. 查看事件类型
amplxe-cl -collect-with runsa -knob event-config=?
# 2. 收集指定事件
amplxe-cl -collect-with runsa -knob event-config=MEM_LOAD_RETIRED.LLC_MISS,MEM_LOAD_RETIRED.LLC_UNSHARED_HIT -target-pid=$pid
  • 输入、分析VTune性能分析结果
# 1. 导入结果
amplxe-cl -import tbsf141.tb5 -r r001
# 2. 分析结果
amplxe-cl -report pmu-events -r r001 -group-by function
  • 热点分析
# 1. 仅列出模块gsexample2a相关的热点函数
amplxe-cl -report hotspots -result-dir r001hs -group-by function -filter module=gsexample2a
# 2. 列出所有的热点函数,包含链接库的
amplxe-cl -report hotspots -result-dir r001hs -call-stack-mode=all -group-by function
# 3. 列出占处理器时间80%的函数(模块)信息
amplxe-cl -report perf-detail -r r000hs -cumulative-threshold-percent 80
# 4. 结果中加入分隔符
amplxe-cl -report perf -csv-delimiter="," -r r000hs

3. 参考:

Intel VTune Amplifier XE 使用的更多相关文章

  1. 【性能分析】使用Intel VTune Amplifier

    本文转自 https://software.intel.com/zh-cn/blogs/2010/11/10/amplxe-cl/版权归原作者所有,如原作者有任何不允许转载之理由,本文将自行删除. I ...

  2. intel vtune 介绍、安装和使用

    intel vtune 介绍 https://software.intel.com/en-us/vtune intel vtune 安装包下载地址 https://software.intel.com ...

  3. Intel.parallel.studio.xe.2015.Update.2.ISO-TBE 下载

    磁力链下载点我 还有linux版本 Intel.parallel.studio.xe.2015.Update.1.LINUX.ISO-TBE 收集自网络,要跨请跨原作者,谢谢.

  4. Unreal Engine* 4/英特尔® VTune™ Amplifier 使用指南

    借助英特尔 VTune Amplifier,可以通过单一易用的分析界面获得先进的分析功能.UE4 和英特尔 VTune Amplifier 相互配合,支持调查代码并进行分析,从而在多个内核上顺畅运行. ...

  5. 如何使用Intel vtune profilier?

    如何使用Intel vtune profilier?

  6. Intel VTune性能分析器基础

    https://wenku.baidu.com/view/b0fe162ebd64783e09122b66.html

  7. <转> Intel VTune分析结果中的名词释译

    原文转自http://blog.chinaunix.net/uid-26000296-id-3369740.html Elapsed Time(执行耗时): the total time your t ...

  8. Enhancing the Scalability of Memcached

    原文地址: https://software.intel.com/en-us/articles/enhancing-the-scalability-of-memcached-0 1 Introduct ...

  9. Parrot源代码分析之海贼王

    我们的目的是找到speedup-example在使用Parrot加速的原因,假设仅仅说它源于Context Switch的降低,有点简单了,它究竟为什么降低了?除了Context Switch外是否还 ...

随机推荐

  1. Python中字典的相关操作

    1. Python类似于Java中的哈希表,只是两种语言表示的方式是不一样的,Python中的字典定义如下: 在Python中是一种可变的容器模型,它是通过一组键(key)值(value)对组成,这种 ...

  2. 初探CORBA组件化编程

    1.掌握组件化开发的概念,了解CORBA模型及ORB机制:2.掌握CORBA组件编程方法.二.实验内容(一).步骤1.配制环境JDK环境.2.编写编译IDL接口.3.编写编译服务端程序.4.编写编译客 ...

  3. BZOJ 3510: 首都 LCT + multiset维护子树信息 + 树的重心

    Code: #include<bits/stdc++.h> #define maxn 200000 #define inf 1000000000 using namespace std; ...

  4. elementUI 图片上传限制上传图片的宽高

    文件上传,需当上传的文件类型为图片的时候,需要限制图片的宽高. 此处采用了new Promise异步加载的方式,等图片上传加载完成后, 页面代码: <el-form-item label=&qu ...

  5. mysql 的load data infile

    LOAD DATA INFILE语句从一个文本文件中以很高的速度读入一个表中.如果指定LOCAL关键词,从客户主机读文件.如果LOCAL没指定,文件必须位于服务器上.(LOCAL在MySQL3.22. ...

  6. mysql explain介绍

    mysql环境优化: 1.如果order by 没有利用到索引,那么将会出现fileSort,如果sort_buffer不够大,fileSort过程则需要使用临时文件 ,fileSort优化,主要通过 ...

  7. 关于bitnami redmine 的一些问题

    http://blog.csdn.net/yanyaming920817/article/details/50059523

  8. 【ACM】poj_2356_Find a multiple_201308061947

    Find a multipleTime Limit: 1000MS  Memory Limit: 65536K Total Submissions: 4988  Accepted: 2159  Spe ...

  9. redis-事务-transaction

    redis的目标的是: 简洁,高效,由于事务本身就是一个很复杂的东西,所有我们不能把事务做的太复杂... multi,exec 127.0.0.1:6379> multi OK 127.0.0. ...

  10. RestTemplate使用详解

    1.RestTemplate添加RequestHeader如content-type可通过httpclient设置 List<Header> headers = new ArrayList ...