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

# WIN32_HEAP_STATISTICS

> WIN32_HEAP_STATISTICS

# WIN32\_HEAP\_STATISTICS

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

<a id="syntaxSection" />

## 語法

```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;
```

<a id="membersSection" />

### 成員

*SegmentCommitSize*\
類型：SIZE\_T

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

*LargeAllocCommitSize*\
類型：SIZE\_T

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

*reserved*\
類型：SIZE\_T

保留供日後使用。

<a id="remarksSection" />

## 備註

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

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

<a id="requirementsSection" />

## 需求

**標頭：** xmem.h

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

<a id="seealsoSection" />

## 另請參閱

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


## Related topics

- [WIN32_HEAP_STATISTICS](/reference/system/xmem/structs/win32_heap_statistics.md)
- [XMemGetWin32HeapStatistics](/reference/system/xmem/functions/xmemgetwin32heapstatistics.md)
