共用方式為


SystemProvider 中的 CaptureStateOnSave

表示關鍵字集合,觸發這些關鍵字的核心取消, (追蹤結尾) 核心旗標。 如果指定 Operation 屬性,則可以將 Keyword 元素設定或新增至集合。

元素階層

Syntax

<CaptureStateOnSave Operation = "Set" | "Add"> | “Remove”
  <!-- Child elements -->
  Keyword (System),
  CustomKeyword
</CaptureStateOnSave>

屬性和項目

屬性

屬性 描述 資料類型 必要 預設
運算 指出是否應該設定或新增關鍵字。 此屬性可以有下列其中一個值:
  • 集合
  • 移除
No 集合

子元素

元素 描述 需求
關鍵字 (在 SystemProvider 中) 描述 SystemLogger 會話的核心旗標。 必要,一或多個。

備註

在追蹤結束時,WPR 會自動執行系統關鍵字的取消。 如果是,請使用 CaptureState* 元素

  • 您想要取消目前未開啟的系統關鍵字
  • 您知道因為系統關機而不會發生取消
  • 您想要在特定時間起始取消。

如果已啟用 kernel 關鍵字,請將 RundownFlag 設定為 Start ,例如在追蹤開始時,或 Stop 停用關鍵字。

父項目

元素 描述
SystemProvider 表示設定檔的系統提供者。
SystemProviderId 表示系統提供者識別碼。

範例

下列程式碼範例示範如何使用這個專案。

    <SystemProvider Id="SystemProvider_CaptureStateOnDemand">
        <Keywords>
            <Keyword Value="MemoryInfo" />
        </Keywords>
        <CaptureStateOnSave>
            <Keyword Value="Pool" RundownFlag="Stop"/>
        </CaptureStateOnSave>
    </SystemProvider>
</SystemProvider>

元素

關鍵字 (在 SystemProvider 中)

CustomKeyword

SystemProvider 中的 CaptureStateOnStart

SystemProvider 中的 CaptureStateOnDemand