Capture and view a WPA trace for connected standby diagnostics

Trace capture is the key diagnostic method that is used to debug issues that are observed during connected standby through SleepStudy or other tools. A trace contains detailed information about system platform states, device states, software activity, CPU utilization, memory utilization, and other system events. By viewing the events that are captured in a trace, you can observe exactly what happened during connected standby and any problems that resulted.

Capture a WPA trace

We recommend that you capture a trace of at least one hour of connected standby to observe trends and averages.

You can capture a trace by using either of the following methods:

Dn495340.wedge(en-us,VS.85).gifUse the Xperf batch files in the WPA package

  1. Install the Xperf tool.
  2. Copy Trace_start.cmd and Trace_end.cmd to the system.
  3. Run Trace_start.cmd from an elevated command prompt in the directory that contains Xperf.
  4. Put the system into connected standby.
  5. Wait for at least one hour and then wake up the system.
  6. To stop recording, run Trace_end.cmd from an elevated command prompt in the directory that contains Xperf.
  7. Wait briefly while the ETL files are merged.
  8. Retrieve Mytrace.etl for analysis.

Dn495340.wedge(en-us,VS.85).gifUse the Windows Performance Recorder (WPR)

  1. Install the Windows Performance Toolkit on the system.
  2. Copy PowerManagement_Profile.wprp to the system.
  3. To start WPR, run Wprui.exe with administrative privileges from the WPT install location.
  4. Expand More options and select the Power Management profile under Custom Measurements in the list of profiles. If the profile does not exist, click Add Profiles and open PowerManagement_Profile.wprp (that you copied in step 2).
  5. Press or click Start to begin recording the trace.
  6. While recording, put the system into connected standby.
  7. Wait for at least one hour and then wake up the system.
  8. Press or click Save to stop recording.
  9. Choose a file name in the displayed dialog.
  10. Enter at least one letter into the description field and press or click Save.
  11. Wait for the progress bar to complete and then press or click OK.
  12. If WPR is still recording, press or click Cancel.
  13. Retrieve the saved trace file for analysis.

View a WPA trace

You can use the WPA tool to view and analyze connected standby traces. Download the WPA tool, install it on a computer, and follow these instructions to open the trace file:

  1. Run Wpa.exe. Note that Wpa.exe is available for x86 and x64 only.
  2. In the WPA menu, click File, click Open, and select a trace file.
  3. Click Profiles\Apply and select CS.wpaProfile.
  4. You can add other graphs to the current analysis view from Graph Explorer by following these steps:

    1. Expand a graph category in Graph Explorer.
    2. Select the graph to add and drag it to the Analysis View pane.

To correlate data from a SleepStudy report to the WPA trace, use the mapping shown in the following table.

SleepStudyWPA trace
ActivatorsThe PDC Resiliency Activity graph shows a list of activators that were active during the connected standby session.
Processors The CPU Idle States graph shows a list of the CPUs in the system and their respective states.
Fx devicesThe Device Dstate graph shows the list of Windows power framework (PoFx) devices that were active during the connected standby session.
PDC phasesThe PDC Notification Phase graph shows the details of all the PDC phases.
NetworkingSeveral graphs show networking activities. The PDC Resiliency Activity graph shows activators such as the broker infrastructure (BI) or Windows Push Notification Services (WNS) that can trigger network activities. The Device Dstate graph shows information about the activity of the Wi-Fi device. The Generic Events graph can show events that are triggered by networking components such as WCM, DHCP, and TCPIP.

 

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft