Event Tracing for Windows (ETW)traces include detailed events on system state and the activities WV2 was doing before and when an issue occurs.
This repo has a WV2 recording profile - WebView2_CPU.wprp that includes the events that we find most useful.
ETW traces can get fairly large, so try to keep the amount of extra time spent when recording as small as possible. If you need a longer trace, ask the WV2 developer that you're working with if WebView2.wprp
will suffice (it gathers less data).
- Close Edge and any other apps using WV2 to make the trace more clear. Common apps using WV2 may include
widgets.exe
,msteams.exe
, and Microsoft Office products. - Download WebView2_CPU.wprp from this repo.
- In an elevated command prompt run
wpr -start WebView2_CPU.wprp -filemode
(wpr.exe is included in Windows) - Reproduce the issue.
- In an elevated command prompt run
wpr -stop trace.etl "trace"
.
ETW traces can contain sensitive information, if you're concerned with sharing one publicly in a GitHub issue, you can ask the WV2 developer you're working with for an email address to send to them privately.