Advertisement
MagicAndre1981

trace high CPU and memory usage with xperf

Oct 30th, 2014
1,034
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Install the Windows Performance Toolkit (http://social.technet.microsoft.com/wiki/contents/articles/4847.install-the-windows-performance-toolkit-wpt.aspx), open the command prompt with admin rights.
  2.  
  3. Now run this command to capture the issue:
  4.  
  5. xperf -on LATENCY+DISPATCHER+FOOTPRINT+VIRT_ALLOC+MEMINFO+VAMAP+REFSET+MEMINFO_WS -stackwalk VirtualAlloc+VirtualFree+PROFILE+CSwitch+ReadyThread -buffersize 2048 -MaxFile 2048 -FileMode Circular && timeout -1 && xperf -d C:\TEMP\HighCPUAndMemoryUsage.etl
  6.  
  7. If you have enough data of the memory usage grow + CPU usage (1.5 - 3 minutes), press a key to stop tracing.
  8.  
  9. Compress the HighCPUAndMemoryUsage.etl as 7z/RAR (to reduce the size), upload it (Onedrive, dropbox) and paste a link here.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement