Advertisement
MagicAndre1981

trace Slow UAC with xperf

Mar 26th, 2014
300
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 open a UAC prompt again:
  5.  
  6. //////////
  7. xperf -on BASE+LATENCY+DISPATCHER+FILE_IO+FILENAME -stackwalk profile+CSwitch+ReadyThread+ProcessCreate+FileCreate+FileCleanup+FileClose+FileRead+FileWrite -buffersize 2048 -MaxFile 1024 -FileMode Circular -f Kernel.etl
  8. xperf -start UserLogger -on Microsoft-Windows-RPC:::'stack'+Microsoft-Windows-LUA:::'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 SlowUAC.etl
  16.  
  17. del user.etl
  18. del kernel.etl
  19. /////////////////
  20.  
  21.  
  22. If you have captured the UAC slowness, press a key to stop tracing.
  23.  
  24. Compress the SlowUAC.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