> ## 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 堆的分段（segment backed）部分的总提交大小。

*LargeAllocCommitSize*\
类型：SIZE\_T

未由分段堆缓存的大型分配的总提交大小。

*reserved*\
类型：SIZE\_T

保留供将来使用。

<a id="remarksSection" />

## 备注

此结构由 [XMemGetWin32HeapStatistics](/reference/system/xmem/functions/xmemgetwin32heapstatistics) 用于提供有关给定 Win32 堆的统计信息。

Win32 堆通过堆的“分段”部分中的缓存内存为分配提供服务，或者代表调用代码直接调用 VirtualAlloc。SegmentCommitSize 跟踪堆的分段部分所拥有的总提交量。LargeAllocCommitSize 跟踪由 VirtualAlloc 直接处理的分配所使用的总提交量。这两个字段的总和提供对 Win32 堆正在使用的内存的估算。

<a id="requirementsSection" />

## 要求

**头文件：** xmem.h

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

<a id="seealsoSection" />

## 另请参阅

[诊断和内存跟踪](/build/console-features/memory/system-memory-diagnostics)\
[XMemGetWin32HeapStatistics](/reference/system/xmem/functions/xmemgetwin32heapstatistics)\
[XMem](/reference/system/xmem/xmem_members)


## Related topics

- [XMemGetWin32HeapStatistics](/zh-CN/reference/system/xmem/functions/xmemgetwin32heapstatistics.md)
- [XMemCreateWin32Heap](/zh-CN/reference/system/xmem/functions/xmemcreatewin32heap.md)
- [XMemGetWin32HeapName](/zh-CN/reference/system/xmem/functions/xmemgetwin32heapname.md)
- [XMemSetWin32HeapName](/zh-CN/reference/system/xmem/functions/xmemsetwin32heapname.md)
- [XMemSetWin32HeapTrackingHooks](/zh-CN/reference/system/xmem/functions/xmemsetwin32heaptrackinghooks.md)
