1

Windows Performance Analyser has a graph called "Window in Focus". What provider/trace flag should I specify in xperf command line to get such a graph?

hvintus
  • 2,547
  • 21
  • 18

2 Answers2

3

"Window in Focus" information is provided by Microsoft-Windows-Win32k provider. For example:

xperf -start uisession -on Microsoft-Windows-Win32k
hvintus
  • 2,547
  • 21
  • 18
  • Consider specifying a flag to reduce the event rate. See this UIforETW change for details: https://github.com/google/UIforETW/commit/9f1a9e7fc2fe6be11dbde92d064b3e58bef479bd – Bruce Dawson Sep 12 '15 at 21:57
0

I use this, which also captures the required data:

xperf -start perf!GeneralProfiles.InBuffer && timeout -1 && xperf -stop perf!GeneralProfiles.InBuffer Trace.etl

This captures most data you need.

magicandre1981
  • 27,895
  • 5
  • 86
  • 127