一开始需要安装一个driver!

Intel® VTune™ Profiler ——异常检测,没有感觉到惊艳,性能的话还是热点分析更好用,另外microarch 分析可以深入cpu看性能问题_安全分析

 

Install the Sampling Drivers for Windows* Targets

To install the drivers on Windows* 7 (deprecated) and Windows* Server 2008 R2 operating systems, you must enable the SHA-2 code signing support for these systems by applying Microsoft Security update 3033929. If the security update is not installed, event-based sampling analysis types will not work properly on your system.

To verify the sampling driver is installed correctly on a Microsoft Windows* OS, open the command prompt as an administrator and run the

amplxe-sepreg.exe

utility located at

<

install-dir

.

To make sure your system meets all the requirements necessary for the hardware event-based sampling collection, enter:

amplxe-sepreg.exe -c

This command performs the following dependency checks required to install the sampling driver:


  • platform, architecture, and OS environment


  • availability of the sampling driver binaries:
    sepdrv4_x.sys , socperf2_x.sys , and sepdal.sys



  • administrative privileges


  • 32/64-bit installation

To check whether the sampling driver is loaded, enter:

amplxe-sepreg.exe -s

If the sampling driver is not installed but the system is supported by the

VTune

Profiler

, execute the following command with the administrative privileges to install the driver:

amplxe-sepreg.exe -i

 

 

 

 

使用amplxe-sepreg.exe -i 安装成功后!

管理员运行即出现:

Intel® VTune™ Profiler ——异常检测,没有感觉到惊艳,性能的话还是热点分析更好用,另外microarch 分析可以深入cpu看性能问题_sed_02

 

 

 

修改为10ms,开始运行:

Intel® VTune™ Profiler ——异常检测,没有感觉到惊艳,性能的话还是热点分析更好用,另外microarch 分析可以深入cpu看性能问题_sed_03

 

 

可以看到在进行硬件指令数据采集的时候,几乎是不占用CPU的!!!

Intel® VTune™ Profiler ——异常检测,没有感觉到惊艳,性能的话还是热点分析更好用,另外microarch 分析可以深入cpu看性能问题_数据_04

 

group那里没有event cpu数据???咋回事???是因为选择的模式不对!!只有microarchtecture 分析才会有!!!

 

Intel® VTune™ Profiler ——异常检测,没有感觉到惊艳,性能的话还是热点分析更好用,另外microarch 分析可以深入cpu看性能问题_安全分析_05

 

在这里,才有CPU event count,

Intel® VTune™ Profiler ——异常检测,没有感觉到惊艳,性能的话还是热点分析更好用,另外microarch 分析可以深入cpu看性能问题_sed_06

 

 

注意采集的数据非常大!采用1ms,有700多MB数据!!!

 

Intel® VTune™ Profiler ——异常检测,没有感觉到惊艳,性能的话还是热点分析更好用,另外microarch 分析可以深入cpu看性能问题_sed_07

 

 

 

Intel® VTune™ Profiler ——异常检测,没有感觉到惊艳,性能的话还是热点分析更好用,另外microarch 分析可以深入cpu看性能问题_数据_08

 

 

Intel® VTune™ Profiler ——异常检测,没有感觉到惊艳,性能的话还是热点分析更好用,另外microarch 分析可以深入cpu看性能问题_安全分析_09