Performance Analysis for Windows - channel9

less than 1 minute read

The following URL contains the useful information about using xperf for analysis of Windows application and OS.
http://channel9.msdn.com/Shows/Defrag-Tools/RSS

1. For example the following script shows how to get sampling CPU usage

1
2
3
4
5
6
7
8
9
10
11
@echo off
echo Press a key when ready to start...
pause
echo .
echo ...Capturing... 
xperf -on PROC_THREAD+LOADER+PROFILE+INTERRUPT+DPC -stackwalk Profile -BufferSize 1024 -MinBuffers 256 -MaxBuffers 256 -MaxFile 256 -FileMode Circular
echo Press a key when you want to stop...
pause 
echo .
echo ...Stopping...
xperf -stop -d cpu.etl