使用XPerf.exe获取WPF ETW事件 [英] Getting WPF ETW events using XPerf.exe
问题描述
我无法找出正确的命令行开关和参数组合以馈入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.
推荐答案
以下是步骤
- wevtutil im C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ WPF \ wpf-etw.man
- xperf-在Microsoft Windows Windows WPF上启动用户会话
- [在WPF中做您的事情]
- xperf-停止用户会话
- xperf user.etl
- WPF事件将在时间轴上显示为点-选择时间轴的一部分
- 右键单击并选择摘要表"
- wevtutil im C:\Windows\Microsoft.NET\Framework\v4.0.30319\WPF\wpf-etw.man
- xperf -start usersession -on Microsoft-Windows-WPF
- [Do your stuff in WPF]
- xperf -stop usersession
- xperf user.etl
- WPF events will show as dots on a timeline - select a section of the timeline
- Right-click and choose "Summary Table"
这是WPF ETW的xperfview
Here is the xperfview of the WPF ETW
HTH
这篇关于使用XPerf.exe获取WPF ETW事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!