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

## 語法

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

### 參數

*stats*\
類型：[DSTORAGE\_STATS](/zh-TW/reference/system/dstorage/structs/dstorage_stats) \*

指向將接收 DirectStorage 統計資料之結構的指標。

### 傳回值

類型：void

## 備註

此函式可用來將 DirectStorage 與現有的診斷和遙測管線整合。它只會進行最少的處理，因此可以經常呼叫。統計資料不包含 Win32 檔案 IO 作業。

## 需求

**標頭：** dstorage\_xs.h

**程式庫：** dstorage\_xs.lib

**支援的平台：** XBOX Series 主機

## 另請參閱

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


## Related topics

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