How to collect an Event Tracing for Windows (ETW) and Xperf trace

Overview 

This is a two-part series on how to troubleshoot performance issues. 

Part 1 of the series is for those who have general performance issues and want to collect performance data in their environment which can be sent to a Support Engineer for analysis.  

Part 2 of this series explains how to import an .XML file into Performance Monitor (Perfmon).  For the steps, see How to import an XML file. 

Install and configure tools to create a trace

To create a trace for analysis, do the following steps: 

  1. Get the Windows Performance Toolkit (WPT), by way of the Windows Assessment and Deployment Kit. Since every iteration of the WPT happens to be distributed slightly differently than the previous version, see Windows Assessment and Deployment Kit for download information . As it stands now, run through the web installer and uncheck everything but Windows Performance Toolkit. 

    It is worth noting that the resulting Windows Kits folder with the WPT is typically portable. Meaning once you install, you can usually copy and paste the folder to another host without going through the web installer again. There are also redistributable executables to install just the WPT for ‘next time or next system’ as well. 

  2. Open the Windows Performance Recorder (WPRui) 

    1. From the Run command, type WPRUI. 

    2. Click Enter. 


    CollectEventTracingW_66f118b8-35e4-49a7-a89e-9a14bcca2097.png
  3. Expand the More Options section. 

    1. Expand the Resource Analysis section. 

    2. Select CPU Usage. 

    3. Select Disk I/O activity. 

    4. Select File I/O activity. 

    5. Expand the Scenario Analysis section. 

    6.         Select Minifilter I/O activity. 

      Optionally, you may skip this and click Add Profiles and add a custom XML instead of check individual boxes. 

  4. Validate the following settings:  

    1. Performance Scenario is General. 

    2. Detail Level is Verbose. 

    3. Logging mode is Memory. 

  5. Click Start and then reproduce the “bad behavior”. 

  6.   Let the collection run for the amount of time the Support Engineer gives you (or a couple minutes while the problem is occurring is typical) and then click Stop. 

  7. Wait. 

  8. Zip and upload the resulting ETL file and the same-named NGEN.PDB folder (if present) to Support for analysis.