The Trace
C:\perf>xperf -i perf.etl -a stack -symbol SetThreadExecutionState
error: stack: no option specified
Batch file contents:
REM Install the stack walking variables. (lines removed for clarity)
xperf -on -stackwalk
ThreadSetPriority+ThreadSetBasePriority+PowerSetPowerAction+PowerSetPowerActionReturn+PowerPreSleep+PowerPostSleep+PowerPerfStateChange
REM (Run the exlevel.exe app wait 30 seconds) This is the app that calls
SetThreadExecutionState
PAUSE
xperf -d perf.etl