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

# IDStorageFactoryX1::GetStats

> IDStorageFactoryX1::GetStats

# IDStorageFactoryX1::GetStats

获取 DirectStorage 统计信息。统计信息不包括 Win32 文件 IO。

## Syntax

```cpp theme={null}
void GetStats(  
    DSTORAGE_STATS *stats  
)  
```

### Parameters

*stats*\
类型：[DSTORAGE\_STATS](/reference/system/dstorage/structs/dstorage_stats) \*

指向将接收 DirectStorage 统计信息的结构的指针。

### Return value

类型：void

## Remarks

此函数可用于将 DirectStorage 集成到现有诊断和遥测流程中。它的处理开销极小，因此可以经常调用。统计信息不包括 Win32 文件 IO 操作。

## Requirements

**头文件：** dstorage\_xs.h

**库：** dstorage\_xs.lib

**受支持的平台：** XBOX Series 主机

## See also

[IDStorageFactoryX1](/reference/system/dstorage/interfaces/IDStorageFactoryX1/idstoragefactoryx1)\
[DStorage](/reference/system/dstorage/dstorage_members)\
[DirectStorage 概述](/build/console-features/storage/directstorage/directstorage-overview)


## Related topics

- [DSTORAGE_STATS](/zh-CN/reference/system/dstorage/structs/dstorage_stats.md)
- [DSTORAGE_PRIORITY_STATS](/zh-CN/reference/system/dstorage/structs/dstorage_priority_stats.md)
- [IDStorageFactoryX1](/zh-CN/reference/system/dstorage/interfaces/IDStorageFactoryX1/idstoragefactoryx1.md)
- [DirectStorage 概述](/zh-CN/build/console-features/storage/directstorage/directstorage-overview.md)
- [DStorageGetFactory](/zh-CN/reference/system/dstorage/functions/dstoragegetfactory.md)
