> ## 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](/zh-TW/reference/tools/pix3/functions/configurepmcs) 的備註中。[ConfigurePMCs](/zh-TW/reference/tools/pix3/functions/configurepmcs) 用於設定硬體計數器以追蹤事件。接著您可以使用 `GetPMCValue` 擷取其中一個已設定事件的計數。

## 需求

**標頭：** pix3\_xbox.h

**程式庫：** pixevt.lib

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

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


## Related topics

- [GetPMCValue](/reference/tools/pix3/functions/getpmcvalue.md)
- [ConfigureL2IPMCs](/reference/tools/pix3/functions/configurel2ipmcs.md)
- [ConfigurePMCs](/reference/tools/pix3/functions/configurepmcs.md)
- [ConfigureNBPMCs](/reference/tools/pix3/functions/configurenbpmcs.md)
