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

一开始需要安装一个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

/bin64
.

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看性能问题

修改为10ms,开始运行:

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

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

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

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

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

在这里,才有CPU event count,

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

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

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

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

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

Original: https://www.cnblogs.com/bonelee/p/16545551.html
Author: bonelee
Title: Intel® VTune™ Profiler ——异常检测,没有感觉到惊艳,性能的话还是热点分析更好用,另外microarch 分析可以深入cpu看性能问题

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/546128/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球