CPU Windows 性能分析器 (WPA) 中的(采样)图表未显示

CPU (sampled) graph in Windows Performance Analyzer (WPA) not shown

我正在尝试使用 xperf 在我的笔记本上收集数据。生成 .etl 文件。我正在使用包含精确和采样 CPU 配置文件的“Diag”。

但是,当在 WPA 上打开 .etl 时,它没有显示“采样”图,只是精确显示。 做了一些搜索,我发现这可能与用于采样时序的硬件计数器有关。

但是,我的 xperf 显示 pmcsource 时序可用:

[![xperf pmcsources 输出][1]][1]

有人知道如何解决这个丢失的采样图问题吗? [1]: https://i.stack.imgur.com/fVnNl.png

根据Microsoft, it was caused by Windows Defender

We have identified an underlying issue in Windows Defender which we believe to be the root cause for most folks. The fix has already been deployed to Windows Update, the steps to get / verify are below:

  1. From PowerShell run Get-MpComputerStatus Verify AntivirusSignatureVersion is >= 1.341.82.0 a.
  2. If the signature version is < 1.341.82.0 run Windows Update to get the latest version and then reverify
  3. Reboot

After this profiling should work in ETW based profilers.