Getting WPF ETW events using XPerf.exe

做~自己de王妃 提交于 2019-12-04 18:27:45

问题


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.


回答1:


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

HTH



来源:https://stackoverflow.com/questions/4093445/getting-wpf-etw-events-using-xperf-exe

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!