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

# WIN32_HEAP_STATISTICS

> WIN32_HEAP_STATISTICS

# WIN32\_HEAP\_STATISTICS

包含指定堆積的統計資料。

## 語法

```cpp theme={null}
typedef struct _XMEM_WIN32_HEAP_STATISTICS {
    SIZE_T SegmentCommitSize;
    SIZE_T LargeAllocCommitSize;
    SIZE_T reserved[6];
} WIN32_HEAP_STATISTICS, *PWIN32_HEAP_STATISTICS;
```

### 成員

*SegmentCommitSize*\
類型：SIZE\_T

Win32 堆積中由區段支援之部分的總認可大小。

*LargeAllocCommitSize*\
類型：SIZE\_T

未由區段堆積快取之大型配置的總認可大小。

*reserved*\
類型：SIZE\_T

保留供日後使用。

## 備註

\
[XMemGetWin32HeapStatistics](https://docs.xbox.com/zh-TW/reference/system/xmem/functions/xmemgetwin32heapstatistics.md) 會使用此結構來提供指定 Win32 堆積的相關統計資料。

Win32 堆積會透過堆積中「由區段支援」部分的快取記憶體，或代表呼叫端程式碼直接呼叫 VirtualAlloc 來處理配置。SegmentCommitSize 會追蹤堆積中由區段支援之部分所擁有的總認可量。LargeAllocCommitSize 會追蹤直接由 VirtualAlloc 處理之配置所使用的總認可量。這兩個欄位的總和可提供 Win32 堆積所使用記憶體的估計值。

## 需求

**標頭：** xmem.h

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

## 另請參閱

[診斷與記憶體追蹤](https://docs.xbox.com/zh-TW/build/console-features/memory/system-memory-diagnostics.md)\
[XMemGetWin32HeapStatistics](https://docs.xbox.com/zh-TW/reference/system/xmem/functions/xmemgetwin32heapstatistics.md)\
[XMem](https://docs.xbox.com/zh-TW/reference/system/xmem/xmem_members.md)


## Related topics

- [XMemGetWin32HeapStatistics](https://docs.xbox.com/zh-TW/reference/system/xmem/functions/xmemgetwin32heapstatistics.md)
- [XMemCreateWin32Heap](https://docs.xbox.com/zh-TW/reference/system/xmem/functions/xmemcreatewin32heap.md)
- [XMemGetWin32HeapName](https://docs.xbox.com/zh-TW/reference/system/xmem/functions/xmemgetwin32heapname.md)
- [XMemSetWin32HeapName](https://docs.xbox.com/zh-TW/reference/system/xmem/functions/xmemsetwin32heapname.md)
- [XMemSetWin32HeapTrackingHooks](https://docs.xbox.com/zh-TW/reference/system/xmem/functions/xmemsetwin32heaptrackinghooks.md)
