Counter

Describes the hardware counter to collect on the specified events for the kernel-mode session. Use wpr -pmcsources to list counters available in the system. One or more Event elements must also be present in order to specify the events on which to place the counter(s).

Element Hierarchy

Syntax

<Counter Value = "string">
</Counter>

Attributes and Elements

Attributes

Attribute Description Data type Required Default
Value Describes the hardware counter String. See the Remarks section for possible values. Yes

Child Elements

None.

Parent Elements

Element Description
Counters Represents a collection of counters.

Remarks

Counter names are CPU specific. Use wpr -pmcsources to enumerate available values for the Value attribute. Counters are limited resources. There is a limit on the number of counters that can be used at a time per system. The counters are collected and attached to the ETW events specified in the Events element.

Elements

HardwareCounter