http://web.archive.org/web/20200721173046/https://docs.microsoft.com/en-us/archive/blogs/jeff_stokes/how-to-collect-a-trace-for-audio-or-video-problems-in-windows-7
"
5. When it reproduces, click Save and save the file off, review in xperfview or Windows Performance Analyzer to determine the cause of the glitches, probably DPCs from usbaudio drivers, but what do I know….
“But way Dude! What if this isn’t easy to reproduce?” you may ask….
Step….
6. If this is not easy to reproduce, get setup to collect a trace as above, but don’t use WPRUI.
Instead, elevate a command prompt, go to the root of a drive, I’ll use C: for the example, and do the following after you have DisablePagingExecutive set and WPT installed…make a trace directory and cd to it.
xperf -on dispatcher+latency+drivers -stackwalk readythread+threadcreate+cswitch+profile -f C:\trace\xperftrace.etl -minbuffers 1024 -maxbuffers 1024 -maxfile 512 -filemode circular
Then let it run in the background while you dork around trying to reproduce the issue. Once it hits, simply do the following:
Xperf -d C:\trace\results.etl
Now you can open results.etl in xperfview.exe or Windows Performance Analyzer and look for DPCs and so forth that might be causing the issue….
"