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

# ConfigureNBPMCs

> ConfigureNBPMCs

# ConfigureNBPMCs

노스브리지 내부의 4개 하드웨어 성능 모니터 카운터(PMC)를 구성하여 타이틀이 타이틀 코드용으로 카운터를 직접 읽을 수 있게 합니다.

## 구문

```cpp theme={null}
HRESULT ConfigureNBPMCs(  
         unsigned int eventIndex6,  
         unsigned int eventIndex7,  
         unsigned int eventIndex8,  
         unsigned int eventIndex9  
)  
```

### 매개변수

*eventIndex6*   \
형식: unsigned int

계수할 이벤트의 인덱스입니다.

*eventIndex7*   \
형식: unsigned int

계수할 이벤트의 인덱스입니다.

*eventIndex8*   \
형식: unsigned int

계수할 이벤트의 인덱스입니다.

*eventIndex9*   \
형식: unsigned int

계수할 이벤트의 인덱스입니다.

### 반환값

형식: HRESULT

성공 또는 오류 코드입니다.

| 코드 | 설명 |
| - | - |
| S\_OK | 성공. |
| E\_INVALIDARG | 하나 이상의 인덱스가 범위를 벗어났습니다. |
| E\_ACCESS\_DENIED | 드라이버에 대한 액세스가 거부되었습니다. |

## 설명

노스브리지에는 이벤트를 계수할 수 있는 4개의 성능 카운터가 있습니다. NB PMC 값은 어떤 코어에서든 읽을 수 있습니다. 노스브리지 메모리 트랜잭션은 64바이트입니다.

\*로 표시된 이벤트는 DRAM 컨트롤러(DCT)에서 기록됩니다. 각 DRAM 컨트롤러에 동일한 이벤트를 설정해야 하므로 이러한 이벤트를 구성할 때는 eventIndex6만 설정합니다.
XBOX One에는 4개의 DRAM 컨트롤러와 4개의 카운터가 있으므로 PMC6-PMC9를 합산하여 총 결과를 얻습니다.\
예: NBAllReadWrites에 대한 총 메모리 트래픽 = (PCM6+PMC7+PCM8+PMC9) \* 64

XBOX One X에는 12개의 DRAM 컨트롤러와 4개의 카운터가 있으므로 3개마다 DCT의 트래픽만 계수합니다. 메모리 트래픽은 대체로 대칭적이므로 이벤트의 총 수가 PMC6-PMC9 합계의 세 배라고 가정하는 것이 합리적입니다.\
예: NBAllReadWrites에 대한 총 메모리 트래픽 = (PCM6+PMC7+PCM8+PMC9) \* 3 \* 64

| 인덱스 | 이벤트 | 설명 |
| - | - | - |
| 0 | Reserved | |
| 1 | NBGarlicReads\* | Garlic 버스 읽기 수 |
| 2 | NBGarlicWrites\* | Garlic 버스 쓰기 수 |
| 3 | NBGarlicReadsWrites\* | Garlic 버스 읽기 및 쓰기 수 |
| 4 | NBOnionReads\* | Onion 버스 읽기 수 |
| 5 | NBOnionWrites\* | Onion 버스 쓰기 수 |
| 6 | NBOnionReadsWrites\* | Onion 버스 읽기 및 쓰기 수 |
| 7 | NBAllReadWrites\* | 모든 NB 읽기 및 쓰기 수 |
| 8 | NBCPUToMemory | 메모리에 대한 CPU 트랜잭션 수 |
| 9 | NBIOToMemory | 메모리에 대한 IO 트랜잭션 수 |

## 요구 사항

**헤더:** pix3.h

**라이브러리:** pixevt.lib

**지원되는 플랫폼:** XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 함께 보기

[GetPMCValue](https://docs.xbox.com/ko/reference/tools/pix3/functions/getpmcvalue.md)\
[ConfigurePMCs](https://docs.xbox.com/ko/reference/tools/pix3/functions/configurepmcs.md)\
[ConfigureL2IPMCs](https://docs.xbox.com/ko/reference/tools/pix3/functions/configurel2ipmcs.md)\
[PIX3 on XBOX](https://docs.xbox.com/ko/reference/tools/pix3/pix3_members.md)\
[PIX(NDA 항목)](https://docs.xbox.com/ko/tools/tools-console/pix/pix.md)


## Related topics

- [ConfigurePMCs](https://docs.xbox.com/ko/reference/tools/pix3/functions/configurepmcs.md)
- [ConfigureL2IPMCs](https://docs.xbox.com/ko/reference/tools/pix3/functions/configurel2ipmcs.md)
- [GetPMCValue](https://docs.xbox.com/ko/reference/tools/pix3/functions/getpmcvalue.md)
- [PIX3 (API 콘텐츠)](https://docs.xbox.com/ko/reference/tools/pix3/pix3_members.md)
- [GET (/ext/unattendedsetup/configure)](https://docs.xbox.com/ko/reference/deviceportal/unattendedsetup/uri-extunattendedsetupconfigure-get.md)
