HardwareCounterId
Uniquely identifies the Hardware Counter.
Element Hierarchy
- <WindowsPerformanceRecorder>
- <Profiles>
- <Profile>
- <Collectors>
- <HardwareCounterId>
- <Collectors>
- <Profile>
- <Profiles>
Syntax
<HardwareCounterId>
<!-- Child elements -->
Counters,
Events,
SampledCounters
</HardwareCounterId>
Attributes and Elements
Attributes
Attribute | Description | Data type | Required | Default |
---|---|---|---|---|
Value | Uniquely identifies the hardware counter. | String that must have at least one character and cannot contain colons (:) or spaces. | Yes |
Child Elements
Element | Description | Requirement |
---|---|---|
Counters | Represents a collection of counters. | Optional. |
Events | Represents a collection of events. | Optional. |
SampledCounters | Represents a collection of sampled counters. | Optional. |
Parent Elements
Element | Description |
---|---|
Collectors | Represents a collection of system collector identifiers, event collector identifiers, and optionally heap event collector identifiers. |
Remarks
For more information about authoring hardware counter definitions, see HardwareCounter.
Example
The following code example shows the section of a profile definition that contains this element.
<Profile Id="Example.Light.File" Name="Example" DetailLevel="Light" LoggingMode="File" Description="Example profile">
<Collectors>
<SystemCollectorId Value="WPRSystemCollector">
<SystemProviderId Value="system-provider"/>
<HardwareCounterId Value="PerfWorkloads"/>
</SystemCollectorId>
…
</Collectors>
</Profile>