Advertisement
MagicAndre1981

trace slow 1st Explorer start with xperf

Oct 15th, 2015
502
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 (http://superuser.com/a/497256/174557).
  2.  
  3. Copy this into a new txt file and rename it to CMD, store it on the desktop, reboot Windows and run it after reboot:
  4. //////////////////////////77
  5.  
  6. xperf -on latency+FILENAME+FILE_IO+FILE_IO_INIT -stackwalk profile+FileCreate+FileCleanup+FileClose+FileRead+FileWrite+FileSetInformation+FileDelete+FileRename -buffersize 1024 -MaxFile 1024 -FileMode Circular -f C:\kernel.etl
  7. xperf -start UserLogger -on Microsoft-Windows-Immersive-Shell:0xffffffffffffffff:0xff:'stack'+Microsoft-Windows-WindowsUIImmersive:0xffffffffffffffff:0xff:'stack'+Microsoft-Windows-Search-Core:0xffffffffffffffff:0xff:'stack'+Microsoft-Windows-Search:0xffffffffffffffff:0xff:'stack'+Microsoft-Windows-UI-Search:0xffffffffffffffff:0xff:'stack' -BufferSize 1024 -f C:\USER.etl
  8.  
  9. echo Now Run the Explorer the first time to capture the delay!!
  10.  
  11. pause
  12.  
  13.  
  14. Xperf -stop
  15. Xperf -stop USERLogger
  16. Xperf -merge C:\USER.etl C:\kernel.etl C:\Result.etl
  17.  
  18. del C:\USER.etl
  19. del C:\kernel.etl
  20. //////////////
  21.  
  22. Now start the Explorer and after you captures the delay, press a key to stop tracing. Zip the Result.ETL file as 7z/RAR (to reduce the size), upload it (Onedrive, dropbox, Google Drive) and paste a link here.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement