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

# DSTORAGE_STATS

> DSTORAGE_STATS

# DSTORAGE\_STATS

DirectStorage 統計資料。

## 語法

```cpp theme={null}
struct DSTORAGE_STATS
{
    DSTORAGE_PRIORITY_STATS LowPriorityStats;
    DSTORAGE_PRIORITY_STATS NormalPriorityStats;
    DSTORAGE_PRIORITY_STATS HighPriorityStats;
    DSTORAGE_PRIORITY_STATS RealtimePriorityStats;
    UINT8 CurrentOpenVirtualDiskCount;
    UINT8 MaxOpenVirtualDiskCount;
    UINT32 CumulativeOpenVirtualDiskCount;
    UINT32 PendingStorageRequestCount;
    UINT32 TotalStorageRequestCount;
    UINT32 StorageRetries;
    UINT32 StorageErrors;
    UINT32 PendingDecompressionRequestCount;
    UINT32 TotalDecompressionRequestCount;
    UINT32 DecompressionErrors;
    UINT32 StagingBufferStallCount;
    UINT32 CurrentOpenFileCount;
    UINT32 MaxOpenFileCount;
    UINT32 CumulativeOpenFileCount;
    UINT32 CurrentTitleMemoryUsageBytes;
    UINT32 MaxTitleMemoryUsageBytes;
    UINT32 ErrorCount;
};
```

### 成員

*LowPriorityStats*\
類型：[DSTORAGE\_PRIORITY\_STATS](/zh-TW/reference/system/dstorage/structs/dstorage_priority_stats)

低優先順序佇列的統計資料。

*NormalPriorityStats*\
類型：[DSTORAGE\_PRIORITY\_STATS](/zh-TW/reference/system/dstorage/structs/dstorage_priority_stats)

一般優先順序佇列的統計資料。

*HighPriorityStats*\
類型：[DSTORAGE\_PRIORITY\_STATS](/zh-TW/reference/system/dstorage/structs/dstorage_priority_stats)

高優先順序佇列的統計資料。

*RealtimePriorityStats*\
類型：[DSTORAGE\_PRIORITY\_STATS](/zh-TW/reference/system/dstorage/structs/dstorage_priority_stats)

即時優先順序佇列的統計資料。

*CurrentOpenVirtualDiskCount*\
類型：UINT8

目前開啟的虛擬磁碟數目 (遊戲套件、DLC 套件、
開發人員暫存空間、PLS)。

*MaxOpenVirtualDiskCount*\
類型：UINT8

同時開啟之虛擬磁碟的最高數目。

*CumulativeOpenVirtualDiskCount*\
類型：UINT32

已開啟虛擬磁碟的累計數目。

*PendingStorageRequestCount*\
類型：UINT32

DirectStorage 傳送至儲存裝置但硬體尚未
完成的要求數目。

*TotalStorageRequestCount*\
類型：UINT32

DirectStorage 傳送至儲存裝置的要求總數。

*StorageRetries*\
類型：UINT32

儲存裝置重試的次數。

*StorageErrors*\
類型：UINT32

儲存裝置錯誤的數目。

*PendingDecompressionRequestCount*\
類型：UINT32

目前擱置中的解壓縮要求數目。

*TotalDecompressionRequestCount*\
類型：UINT32

解壓縮要求的總數。

*DecompressionErrors*\
類型：UINT32

解壓縮錯誤的數目。

*StagingBufferStallCount*\
類型：UINT32

因暫存緩衝區已滿而造成的停滯次數。

*CurrentOpenFileCount*\
類型：UINT32

目前開啟的檔案數目。

*MaxOpenFileCount*\
類型：UINT32

同時開啟之檔案的最高數目。

*CumulativeOpenFileCount*\
類型：UINT32

已開啟檔案的累計數目。

*CurrentTitleMemoryUsageBytes*\
類型：UINT32

目前的 DirectStorage 記憶體使用量 (包括暫存緩衝區等)。

*MaxTitleMemoryUsageBytes*\
類型：UINT32

最高的 DirectStorage 記憶體使用量 (包括暫存緩衝區等)。

*ErrorCount*\
類型：UINT32

錯誤的總數。
每當要求因任何原因失敗時，錯誤計數就會遞增。
錯誤範例包括：從無效的位移讀取資料、儲存裝置錯誤、
解壓縮錯誤、無效的要求參數等。

## 備註

此結構由 [IDStorageFactoryX1::GetStats](/zh-TW/reference/system/dstorage/interfaces/IDStorageFactoryX1/methods/idstoragefactoryx1_getstats) 方法使用。

## 需求

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

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

## 另請參閱

[DStorage](/zh-TW/reference/system/dstorage/dstorage_members)


## Related topics

- [DSTORAGE_STATS](/reference/system/dstorage/structs/dstorage_stats.md)
- [DSTORAGE_PRIORITY_STATS](/reference/system/dstorage/structs/dstorage_priority_stats.md)
