使用 XPerf.exe 获取 WPF ETW 事件

发布于 2024-09-30 16:47:00 字数 442 浏览 1 评论 0原文

我无法弄清楚要提供给 XPerf.exe 的命令行开关和参数的正确组合,以使其加载 WPF ETW 提供程序(Microsoft-Windows-WPF?a42c77db-874f-422e-9b44-6d89fe2bd3e5?E13B77A8- 14B6-11DE-8069-001B212B5009}?) 并侦听特定事件 (WClientInputMessage)。

任何人都可以对这应该是什么样子给出任何见解吗?分散的文档片段(包括 http://windowsclient.net/wpf/ white-papers/event-tracing-wpf.aspx)和神秘的“xperf -help start”文本似乎是任何知识的荒原。

I cannot figure out the correct combination of command line switches and parameters to feed to XPerf.exe to get it to load the WPF ETW provider (Microsoft-Windows-WPF? a42c77db-874f-422e-9b44-6d89fe2bd3e5? E13B77A8-14B6-11DE-8069-001B212B5009}?) and listen for a specific event (WClientInputMessage).

Can anyone give any insight on how this should look? The scattered fragments of documentation (including http://windowsclient.net/wpf/white-papers/event-tracing-wpf.aspx) and cryptic "xperf -help start" text appear to be a wasteland of any knowledge.

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

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

发布评论

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

评论(1

不语却知心 2024-10-07 16:47:00

以下是

  1. wevtutil im C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\wpf-etw.man
  2. xperf -start usersession -on Microsoft-Windows-WPF
  3. [在 WPF 中做你的事情]< /em>
  4. xperf -stop usersession
  5. xperf user.etl
  6. WPF 事件将在时间轴上显示为点 - 选择时间轴的一部分
  7. 右键单击​​并选择“汇总表”

这是 WPF ETW 的 xperfview
XPerf 摘要表的屏幕截图

HTH

Here are the steps

  1. wevtutil im C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\wpf-etw.man
  2. xperf -start usersession -on Microsoft-Windows-WPF
  3. [Do your stuff in WPF]
  4. xperf -stop usersession
  5. xperf user.etl
  6. WPF events will show as dots on a timeline - select a section of the timeline
  7. Right-click and choose "Summary Table"

Here is the xperfview of the WPF ETW
Screenshot of the XPerf Summary Table

HTH

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