Windows 7 CPU performance profiling example

@echo off
set _NT_SYMBOL_PATH=f:\src\Debug\;srv*c:\WebSymbol*

xperf -on Latency -stackwalk profile

echo Performance Trace started.
echo When done with profile actions,


xperf -d Trace.etl

start xperfview Trace.etl

On windows 64 bits, the following registry should be added to record the call stack.

REG ADD "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management" -v DisablePagingExecutive -d 0x1 -t REG_DWORD -f

This entry was posted in Programming, Windows. Bookmark the permalink.

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.