Here is a short video showing how to root cause CPU consumption issues on Vista/Server 2008 and higher operating systems with Xperf.
For this scenario, Xperf is an easy to implement and powerful replacement for previous actions like gathering a series of dumps during the CPU, kernrate data, perfmon, other profilers, etc.
Xperf allows one to quickly turn on profiling and see where the CPU time is being spent by using tracing already in the box!
Note - Feel free to post questions here, or jump into a discussion about the video on our Twitter page ( @ntdebugging ).
the article is good but you made it quit tough to understand
Thanks for the video. You made it easy to understand creating and analyzing an xperf trace. I was able to find the High CPU causing process following your steps.
C:\Program Files\Microsoft Windows Performance Toolkit>xperf.exe -on DiagEasy
xperf: error: NT Kernel Logger: Cannot create a file when that file already exis
The problem is you cannot stop the NT Kernel Logger trace when the Trace Session->Stream mode is set to Real Time in the NT Kernel Logger Event Trace Sessions’ properties. Switch it to File and then you will be able to stop it. You can then utilize xperf to run kernel traces. Be sure to switch it back to the way it was when you are done!
stop other Tools like ProcExplorer, ResMon, LatencyMon before running xperf