XPerfView 加载符号缓慢

发布于 2024-09-10 12:05:40 字数 381 浏览 1 评论 0原文

我正在尝试使用 Xperf 执行 stackwalk,使用类似于 中列出的批处理文件带有 xperf 的符号

我启动 XperfView,确认符号路径正确,然后加载符号。但是,当我尝试打开“CPU Sampling by CPU”图表的选定部分(5 秒左右)上的汇总表时,性能分析器会挂起(无响应)很长时间(数小时)。

我昨晚让它继续运行,当我今天早上进来时,汇总表终于加载了,包含预期的结果...我原以为它可能只是执行初始下载以将符号缓存到 C:\symbols,但是今天早上的重复测试也有类似的问题(此时挂起 1 小时 15 分钟)。

I am attempting to perform a stackwalk with Xperf, using a batch file similar to the one listed at Getting the symbols with xperf.

I launch XperfView, confirm the symbol path is correct, and then load the symbols. However, when I attempt to open a summary table on a selected portion (5 seconds or so) of the "CPU Sampling by CPU" graph, the Performance Analyzer hangs (not responding) for a long time (hours).

I left it running last night, and when I came in this morning the Summary Table had finally loaded, containing results as expected... I had thought perhaps it was just performing an initial download to cache the symbols to C:\symbols, but a repeat test this morning has similar problems (hang for 1 hr 15 minutes at this point).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

所有深爱都是秘密 2024-09-17 12:05:40

WPT(xperf、xperfview、WPA)不随 dbghelp.dll 和 symsrv.dll 一起提供。这意味着,根据您的路径中的内容,您可能会得到:

  1. 快速符号加载
  2. 符号加载时间长达 150 倍
  3. 根本没有符号加载。

解决方案是将这些 DLL 的已知良好版本复制到 WPT 安装目录中。欲了解更多详细信息,请参阅此帖子:
http://randomascii.wordpress.com/2012/10/ 04/xperf-symbol-loading-陷阱/

WPT (xperf, xperfview, WPA) doesn't ship with dbghelp.dll and symsrv.dll. That means that, depending on what is in your path you may get:

  1. Fast symbol loading
  2. Symbol loading that takes up to 150x longer
  3. No symbol loading at all.

The solution is to copy a known-good version of these DLLs into the WPT install directory. For more details see this post:
http://randomascii.wordpress.com/2012/10/04/xperf-symbol-loading-pitfalls/

残龙傲雪 2024-09-17 12:05:40

Bruce Dawson 在他的 帖子 中推测,当前 SDK 中附带的 WPT 中的 dbghelp.dll 和/或 symsrv.dll 存在问题。他建议用 Visual Studio 2010 或 Windows 调试工具(即 WinDbg)中的工具替换这些工具。为我工作...

In his post , Bruce Dawson speculates that there is an issue with dbghelp.dll and/or symsrv.dll in WPT as shipped in the current SDK. He suggesting replacing those with the ones either from Visual Studio 2010, or from Debugging Tools for Windows (i.e. WinDbg). Worked for me...

谁许谁一生繁华 2024-09-17 12:05:40

你是否设置了像这样的符号缓存

SRV*c:\dev\symbols*http://msdl.microsoft.com/download/symbols

符号缓存会在本地缓存符号。我通常有包含上述信息的 _NT_SYMBOL_PATH 环境变量。

华泰

Have you set up symcache something like this

SRV*c:\dev\symbols*http://msdl.microsoft.com/download/symbols

The symcache would cache the symbols locally. I usually have my _NT_SYMBOL_PATH environment variable with the above information.

HTH

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文