基于带有英特尔 Vtune 放大器的挂钟时间的 C++ 程序简介

Profile C++ programm based on wall clock time with intel Vtune amplifier

我刚开始使用英特尔 VTune Amplifier XE,默认情况下看起来只有 cpu 时间测量。是否可以设置 VTune 以根据挂钟时间(实时)获得结果? 实际上我的目标是从磁盘 I/O 操作中获取热点。

要在 VTune 中测量 I/O 应用程序,您可以使用两个功能。 Locks and Waits Analysis to trace APIs which are blocking you app execution (including I/O API) or dedicated Disk Input and Output Analysis 查看您是否在磁盘上被阻止以及应用程序中的哪些 API 导致了这种情况。