> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetPMCValue

> GetPMCValue

# GetPMCValue

Gets the value of a hardware Performance Monitor Counter (PMC).

## Syntax

```cpp theme={null}
void GetPMCValue(  
         UINT32 index,  
         UINT64* value  
)  
```

### Parameters

*index*   \
Type: UINT32

Index of the hardware counter (from 0 to 3).

*value*   \
Type: UINT64\*

The value of the counter, as a pointer to a 64 bit integer.

### Return value

Type: void

## Remarks

There are four hardware counters that can be configured directly to count events. The countable events are listed in the remarks for [ConfigurePMCs](/reference/tools/pix3/functions/configurepmcs). [ConfigurePMCs](/reference/tools/pix3/functions/configurepmcs) is used to configure the hardware counters to track event.  You can then use `GetPMCValue` to retrieve the counts of one of the configured events.

## Requirements

**Header:** pix3\_xbox.h

**Library:** pixevt.lib

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[ConfigurePMCs](/reference/tools/pix3/functions/configurepmcs)\
[ConfigureL2IPMCs](/reference/tools/pix3/functions/configurel2ipmcs)\
[ConfigureNBPMCs](/reference/tools/pix3/functions/configurenbpmcs)\
[PIX3 on XBOX](/reference/tools/pix3/pix3_members)\
[PIX (NDA topic)](/tools/tools-console/pix/pix)


## Related topics

- [ConfigureL2IPMCs](/reference/tools/pix3/functions/configurel2ipmcs.md)
- [ConfigurePMCs](/reference/tools/pix3/functions/configurepmcs.md)
- [ConfigureNBPMCs](/reference/tools/pix3/functions/configurenbpmcs.md)
- [PIX3](/reference/tools/pix3/pix3_members.md)
- [GetCompletedValue](/reference/graphics/d3d12/interfaces/id3d12fence/methods/id3d12fence_getcompletedvalue_public.md)
