Performance Analysis for Windows – channel9

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

@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
Advertisements
This entry was posted in Performance, Programming. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s