Getting WPF ETW events using XPerf.exe

前端 未结 1 1020
攒了一身酷
攒了一身酷 2021-02-14 13:53

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? a42c7

相关标签:
1条回答
  • 2021-02-14 14:31

    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

    0 讨论(0)
提交回复
热议问题