> ## 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

获取硬件性能监视计数器 (PMC) 的值。

## 语法

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

### 参数

*index*   \
类型：UINT32

硬件计数器的索引（从 0 到 3）。

*value*   \
类型：UINT64\*

计数器的值，为指向 64 位整数的指针。

### 返回值

类型：void

## 备注

有四个可以直接配置以计数事件的硬件计数器。可计数的事件列在 [ConfigurePMCs](/reference/tools/pix3/functions/configurepmcs) 的备注中。[ConfigurePMCs](/reference/tools/pix3/functions/configurepmcs) 用于配置硬件计数器以跟踪事件。然后，你可以使用 `GetPMCValue` 检索所配置事件之一的计数。

## 要求

**头文件：** pix3\_xbox.h

**库：** pixevt.lib

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[ConfigurePMCs](/reference/tools/pix3/functions/configurepmcs)\
[ConfigureL2IPMCs](/reference/tools/pix3/functions/configurel2ipmcs)\
[ConfigureNBPMCs](/reference/tools/pix3/functions/configurenbpmcs)\
[XBOX 上的 PIX3](/reference/tools/pix3/pix3_members)\
[PIX（NDA 主题）](/tools/tools-console/pix/pix)


## Related topics

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