GFlags, the Global Flags Editor, enables and disables advanced debugging, diagnostic, and troubleshooting features. 此工具通常用來開啟其他工具追蹤、計數和記錄的指標。
The gflags.exe file is included in the Debugging Tools for Windows 10 (WinDbg). 當您安裝偵錯工具時,預設會安裝64位版本的檔案。
Windows 64-bit: Access GFlags in the default x64 location, C:\Program Files (x86)\Windows Kits\10\Debuggers\x64.
Windows 32-bit: Access GFlags in the x86 location, C:\Program Files (x86)\Windows Kits\10\Debuggers\x86.
GFlags 概觀
驅動程式開發人員和測試人員通常會使用 GFlags 直接開啟偵錯、記錄和測試功能,或在測試腳本中包含 GFlags 命令。 The page heap verification features can help you identify memory leaks and buffer errors in kernel-mode drivers.
GFlags 提供對話框 UI 體驗,以及命令行提示字元。 大部分功能都可從UI和命令行取得,但某些功能只能在一個介面中存取。 For more information, see GFlags details.
Features
GFlags 支援下列功能:
頁面堆積驗證。 GFlags includes the functions of
PageHeap(pageheap.exe file), a tool that enables heap allocation monitoring.No reboot is required for the Special Pool feature. You can enable, disable, and configure the Special Pool feature without restarting (rebooting) the computer. For more information, see Special Pool.
對象參考追蹤。 旗標可讓您追蹤核心中的物件參考和物件取值。 這項功能會偵測對象參考計數的遞減頻率過常或未遞減,即使不再使用物件也一樣。
[GFlags] 對話框具有索引標籤式頁面,方便流覽。
Important
集區標記會在 Windows 上永久啟用。 [全域旗標] 對話方塊上的 [啟用集區標記] 複選框無法使用,而且啟用或停用集區標記的命令會失敗。
Requirements
若要使用大部分的 GFlags 功能,您必須是電腦上的系統管理員群組成員。 例如,若要在登錄或核心模式中設定旗標,或啟用頁面堆積驗證。
Note
不正確使用 GFlags 工具可能會降低系統效能,或防止 Windows 啟動,這可能需要重新安裝 Windows。
本節包含: