至MS官網下載 微軟 SDK 下載工具。選第二項 Windows Performance Tools 。
裝好 WPT 後,在 CMD 命令列環境下多了追蹤功能的指令:
分析開機過程:
xbootmgr -trace boot -traceFlags BASE+CSWITCH+DRIVERS+POWER -resultPath C:\TEMP
分析關機過程:
xbootmgr -trace shutdown -noPrepReboot -traceFlags BASE+CSWITCH+DRIVERS+POWER -resultPath C:\TEMP
分析 Standby:
xbootmgr -trace standby -traceFlags BASE+CSWITCH+DRIVERS+POWER -resultPath C:\TEMP
分析 hibernate:
xbootmgr -trace hibernate -traceFlags BASE+CSWITCH+DRIVERS+POWER -resultPath C:\TEMP
系統會開始自動執行相關過程,並紀錄狀況。完成後應該會重新開機進入系統,而紀錄檔就在
C:\TEMP 目錄下。
文字紀錄的 log 檔案,請用 CMD 模式,進到 C:\TEMP 目錄下:
查開機:
xperf /tti -i boot_BASE+CSWITCH+DRIVERS+POWER_1.etl -o summary_boot.xml -a boot
查關機:
xperf /tti -i shutdown_BASE+CSWITCH+DRIVERS+POWER_1.etl -o summary_shutdown.xml -a shutdown
其它相關文章: Windows Performance Analyzer 有別於PerfMon的圖形化互動效能分析工具
沒有留言:
張貼留言