docs/tracing.md
React native for Windows implements an event provider using Event Tracing for Windows (ETW) framework, to enable instrumenting and analyzing performance critical source code. Events generated by an ETW provider can be observed and analyzed using tools available through Windows Performance Toolkit (WPT).
Currently, we have implemented the Systrace APIs on Windows to generate ETW events. Systrace APIs are used to instrument the core React Native source code. In future, we will instrument more of the React Native Windows source code with ETW events.
Tracing sessions can be managed as described below,
& .\vnext\Scripts\Tracing\Start-Tracing.ps1
& .\vnext\Scripts\Tracing\Start-Tracing.ps1 -IncludeGeneralTrace=$True
& .\vnext\Scripts\Tracing\Stop-Tracing.ps1
& .\vnext\Scripts\Tracing\Stop-Tracing.ps1 -NoAnalysis=$True