一开始需要安装一个driver!
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
<
.
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 安装成功后!
管理员运行即出现:
修改为10ms,开始运行:
可以看到在进行硬件指令数据采集的时候,几乎是不占用CPU的!!!
group那里没有event cpu数据???咋回事???是因为选择的模式不对!!只有microarchtecture 分析才会有!!!
在这里,才有CPU event count,
注意采集的数据非常大!采用1ms,有700多MB数据!!!