使用XPerf.exe获取WPF ETW事件 [英] Getting WPF ETW events using XPerf.exe

查看:120
本文介绍了使用XPerf.exe获取WPF ETW事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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).

任何人都不能对它的外观有任何见解?文档分散的片段(包括 http://windowsclient.net/wpf/白皮书/event-tracing-wpf.aspx )和神秘的"xperf-帮助开始"文本似乎是任何知识的荒地.

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.

推荐答案

以下是步骤

  1. wevtutil im C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ WPF \ wpf-etw.man
  2. xperf-在Microsoft Windows Windows WPF上启动用户会话
  3. [在WPF中做您的事情]
  4. xperf-停止用户会话
  5. xperf user.etl
  6. WPF事件将在时间轴上显示为点-选择时间轴的一部分
  7. 右键单击并选择摘要表"
  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"

这是WPF ETW的xperfview

Here is the xperfview of the WPF ETW

HTH

这篇关于使用XPerf.exe获取WPF ETW事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆