Stack Walking in Xperf

Bruce Dawson is a performance analyst on the client performance team.  He has written this guest post on enabling stack walking using xperf for both 32-bit and 64-bit Windows systems (Vista and Win7).  For more posts on xperf see this page. Introduction When I first started working with xperf I was confused by the many…


StackOverflow answer – why learn multi-core programming? #2

In my last post I talked about how multi-threading can be used to improve responsiveness while loading a file.    I’ve put together a sample program (source included) that shows how to do this in C# 3.0, .NET 3.5, and WPF using Visual Studio 2008.  You can find a zip file with a complete project attached….


So just what is in a trace? Using the xperf trace dumper

There is a lot of information in a typical kernel trace.  While the Performance Analyzer tool is quite powerful and makes it easy to view a trace graphically, sometimes you just need to see what is in the trace directly.  Xperf makes this easy. First, its important to understand that a trace file (.ETL) is…


XPerf Articles

Here is a chronological list of the my posts about the xperf tools.  If you are new to the tools, or simply want to find a specific article, this is a good place to start.  I’ve listed each article’s title and first paragraph.   The title is the link to the post.  Xperf, a new tool…


Using the Windows Sample Profiler with Xperf

Using the xperf tools, ETW, and the kernel sample profile interrupt all together provides a very effective and easy to use sample profiler for the analysis of both application and system wide performance.  At each sample interrupt, the ETW sub-system captures the instruction pointer and the stack.  This data is lazily and efficiently logged to…


Xperf support for XP

"Do the xperf tools support XP or Windows Server 2003?" is a frequently ask question.  The answer is no mostly, and yes for a few things.  The next article in this series is Using the Windows Sample Profiler with Xperf xperf.exe can be used on Windows XP SP2, and Windows Server 2003 for turning tracing…


Using Xperf to take a Trace (updated)

Lets get to it!  Here is how to take a basic trace then look at CPU and disk utilization.    Its really simple, just three commands to turn on tracing, turn it off, and then view the trace. The next article in this series is Xperf support for XP First, from an elevated command prompt window,…


Xperf Tools Landing Page and Update

The WHDC folks now have web page setup for the Windows Performance Toolkit (aka the ‘xperf tools’).  The page includes downloads for updates to the versions that ship in the SDK.  In the near future, this page will include pointers to updated documentation, and discussion forums. The next article in this series is Using Xperf…


Xperf, a new tool in the Windows SDK

The SDK team just shipped the latest version of the Windows SDK which supports Windows Server 2008 and Vista SP1.  The SDK now includes an important new tool; the Windows Performance Tool Kit from the Windows performance team (we call them the xperf tools for short…) This is the first article in the xperf series,…


Beyond Hello World – Update 5, TreeMap Control Working, Perf Issues

CLCV V5 now has a fully working TreeMap control that zooms, supports mouse over events and looks pretty good.  The regions are laid out with the Squarified TreeMap algorithm.  Even better, the tree map itself scales to large numbers of nodes – easily 100’s of thousands, and on my lap top, it will handle a couple…