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

Gets the DirectStorage statistics. The statistics do not include Win32 file IO.

## Syntax

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

### Parameters

*stats*\
Type: [DSTORAGE\_STATS](/reference/system/dstorage/structs/dstorage_stats) \*

Pointer to a structure that will receive the DirectStorage statistics.

### Return value

Type: void

## Remarks

This function can be used to integrate DirectStorage with existing diagnostic and telemetry pipelines. It does minimal processing and thus can be called often. The statistics do not include Win32 file IO operations.

## Requirements

**Header:** dstorage\_xs.h

**Library:** dstorage\_xs.lib

**Supported platforms:** XBOX Series consoles

## See also

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


## Related topics

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