- 18th February 2010, 21:26 #1Gold Member
- Join Date
- Jan 2010
How to time boot & perform a Boot Trace in Windows with Microsoft Windows 7 SDK
Came across this while hunting for a way to get load times on each individual process loaded at System Boot. While the scripts out take snapshots of time from restart........... this will give you Very Detailed information about your Boot Time, Shutdown, Standby/Resume and Hibernate/Resume
To get started you need the Windows Performance Tools Kit. Sadly Microsoft removed the stand alone installer from download. To get the installer, you have to install the Windows 7 SDK.
Download the Web Installer and select the Win32 Development Tools and install them.
Download details: Microsoft Windows 7 SDK
Make sure to just select the Win32 Development Tools or I promise you, you'll be waiting for a long time for it to download and install ( I found out the hard way not paying attention)
C:\Program Files\Microsoft SDKs\Windows\v7.0\bin
wpt_ia64.msi, if you're running an Itanium Windows
wpt_x64.msi, if you run a 64Bit Windows Vista/7/Server 2008 (R2)
wpt_x86.msi, if you run a 32Bit Vista/7/Server 2008).
Now open an elevated command prompt and run the following commands:
Start Menu/All Programs/Accessories Right-Click Command Prompt and select Run as Administrator
xbootmgr -trace boot -traceFlags BASE+CSWITCH+DRIVERS+POWER -resultPath C:\TEMP
For shutdown tracing:
xbootmgr -trace shutdown -noPrepReboot -traceFlags BASE+CSWITCH+DRIVERS+POWER -resultPath C:\TEMP
xbootmgr -trace standby -traceFlags BASE+CSWITCH+DRIVERS+POWER -resultPath C:\TEMP
xbootmgr -trace hibernate -traceFlags BASE+CSWITCH+DRIVERS+POWER -resultPath C:\TEMP
replace C:\TEMP with any temp directory on your machine as necessary to store the output files
All of these will shutdown, hibernate, or standby your box, and then reboot to finish tracing. Once Vista/Server 2008(R2) or Windows 7 does reboot, log back in as necessary and once the countdown timer finishes, you should now have some tracing files in C:\TEMP. If asked, upload or provide the file(s) generated in C:\TEMP (or the directory you chose) on a download share for analysis.
To view information open the Performance Analyzer Trace File
Original Post found here
Trace Windows 7 boot/shutdown/hibernate/standby/resume issues - MSFN Forums
Screenshot of my Boot Trace as an example:
- 19th February 2010, 15:26 #2