SystemProvider 中的 CaptureStateOnStart

表示关键字的集合,这些关键字在跟踪开始时触发这些关键字的内核运行 (内核标志) 。 如果指定了“操作”属性,则可以设置 Keyword 元素或将其添加到集合中。

元素层次结构

语法

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

特性和元素

特性

属性 说明 数据类型 必须 默认
操作 指示是应设置还是添加关键字。 此属性可以具有以下值之一:
  • 设置
  • 添加
  • 删除
设置

子元素

元素 说明 要求
Keyword (in SystemProvider) 描述 SystemLogger 会话的内核标志。 必需(一个或多个)。

备注

WPR 会在跟踪结束时自动执行系统关键字的运行。 如果,请使用 CaptureState* 元素

  • 你希望当前未启用的系统关键字的破败
  • 你知道不会因为系统关闭而发生崩溃
  • 你想要在特定时间启动运行。

如果启用内核关键字 (keyword) (例如在跟踪开始时)或Stop禁用关键字 (keyword) ,请将 RundownFlag Start 设置为 。

父元素

元素 说明
SystemProvider 表示配置文件的系统提供程序。
SystemProviderId 表示系统提供程序标识符。

示例

以下代码示例演示如何使用此元素。

    <SystemProvider Id="SystemProvider_CaptureStateOnDemand">
        <Keywords>
            <Keyword Value="MemoryInfo" />
        </Keywords>
        <CaptureStateOnStart>
            <Keyword Value="Pool" RundownFlag="Start"/>
        </CaptureStateOnStart>
    </SystemProvider>
</SystemProvider>

元素

Keyword (in SystemProvider)

CustomKeyword

SystemProvider 中的 CaptureStateOnSave

SystemProvider 中的 CaptureStateOnDemand