Jaa


CaptureStateOnDemand in SystemProvider

Represents a collection of keywords that triggers the kernel rundown of those keywords on demand while recording. You can trigger the capturestate of the provider by wpr -capturestateondemand command. If the Operation attribute is specified, the Keyword elements can be set or added to the collection.

Element Hierarchy

Syntax

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

Attributes and Elements

Attributes

Attribute Description Data type Required Default
Operation Indicates whether keywords should be set or added. This attribute can have one of the following values:
  • Set
  • Add
  • Remove
No Set

Child Elements

Element Description Requirement
Keyword (in SystemProvider) Describes the kernel flags for a SystemLogger session. Required, one or more.

Remark

The rundown of the system keywords automatically happens by WPR at the end of the trace. Use CaptureState* element if

  • you want the rundown of system keywords that are not currently on
  • you know the rundown will not happen at the end of trace because of the system shutdown
  • you want to initiate the rundown at specific time.

Set RundownFlag to Start if the kernel keyword is being enabled, for example at the start of the trace, or Stop if the keyword is being disabled.

Parent Elements

Element Description
SystemProvider Represents an system provider for the profile.
SystemProviderId Represents an system provider identifier.

Example

The following code example shows how this element is used.

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

Elements

CustomKeyword

CaptureStateOnStart in SystemProvider

CaptureStateOnSave in SystemProvider