SampledCounter

Describes the hardware counter to be sampled at an interval for the kernel-mode session. Use wpr -pmcsources to list available counters in the system and current sampling interval of each counter.

Element Hierarchy

Syntax

<SampledCounter Value = "string">
</SampledCounter>

Attributes and Elements

Attributes

Attribute Description Data type Required Default
Value Describes the hardware counter String. See the Remarks section for possible values. Yes
Interval Describes the sampling frequency UnsignedLong value in 100 ns units. The value should be greater than 1221 and less than 2147483647. No

Child Elements

None.

Parent Elements

Element Description
SampledCounters Represents a collection of counters.

Remarks

The name of counters are based on CPU. Use wpr -pmcsources to enumerate available values for the Value attribute. The output also shows the current interval value and minimum and maximum value of the interval. Counters are limited resources. There is a limit on the number of counters that can be used at a time per system. The sampling of counters requires PmcProfile keyword in SystemProvider. Please refer to SampledCounters for the example.

Elements

HardwareCounter