Advertisement
MagicAndre1981

slowness tracing with xperf

Aug 2nd, 2014
889
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.  
  4. Now copy those commands in an empty .CMD file and run the CMD (as admin) before you try to run an action which triggers the slowness:
  5.  
  6. //////////
  7. xperf -on PROC_THREAD+LOADER+CSWITCH+DISPATCHER+DISK_IO+DISK_IO_INIT+FILENAME+FILE_IO+FILE_IO_INIT+PROFILE -stackwalk profile+CSwitch+ReadyThread+ProcessCreate+FileCreate+FileCleanup+FileClose+FileRead+FileWrite+DiskReadInit+DiskWriteInit -buffersize 2048 -MaxFile 1024 -FileMode Circular -f Kernel.etl
  8. xperf -start UserLogger -on Microsoft-Windows-Shell-Core:::'stack'+Microsoft-Windows-Shell-Shwebsvc:::'stack'+Microsoft-IE:::'stack'+Microsoft-IEFRAME:::'stack'+Microsoft-Windows-WinINet:::'stack'+Microsoft-Windows-WinINet:::'stack' -BufferSize 2048 -f User.etl
  9.  
  10. timeout -1
  11.  
  12. xperf -stop
  13. xperf -stop UserLogger
  14.  
  15. xperf -merge User.etl kernel.etl SlowWindows.etl -compress
  16.  
  17. del user.etl
  18. del kernel.etl
  19. /////////////////
  20.  
  21.  
  22. If you have captured the slowness, press a key to stop tracing.
  23.  
  24. Compress the SlowWindows.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