加载符号变灰 Windows 性能分析器

Load Symbols Grayed Out Windows Performance Analyzer

我正在学习本教程:

https://dzone.com/articles/diagnosing-native-memory-leaks

当我到达有关加载我的符号的部分时,我不能,因为 Trace->load symbols 是灰色的。关于单击后符号是否未加载(这意味着符号路径设置不正确)有很多答案,但我看到 none 关于按钮变灰。

我还通过 运行 使用 WinDbg 的应用程序仔细检查了我的符号路径。关于我的符号路径,我没有收到任何错误。我还可以在其他 etl 文件上加载符号。是否需要启用标志才能在此 etl 上加载符号?

为什么 "Load Symbols" 在 Windows 性能分析器中会变灰?

我在 Windows 7 上,在此路径上使用 WPT C:\Program Files (x86)\Windows Kits\Windows 性能工具包

我使用的命令和教程一样:

xperf -on PROC_THREAD+LOADER
xperf -start heapsession -heap -pids 1234 -stackwalk HeapAlloc+HeapRealloc

然后

xperf -stop heapsession -d C:\temp\heap.etl
xperf -d C:\temp\kernel.etl
xperf -merge C:\temp\heap.etl C:\temp\kernel.etl C:\temp\combined.etl

好的,这是一个已知问题。 Windows 10 SDK/WPT 的 TH1 版本在 Windows 7 上损坏。此版本错过了 KernelTraceControl/ImageID/DbgID_RSDS 事件。

您应该使用 Windows 8.1 WPT/SDK or the today released SDK for Windows 10 Build 10563,其中包含针对该问题的修复:

Corrected problem that prevented trace capture on pre-Windows 8 OS releases using xperf.exe and wpr.exe.