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

> DSTORAGE_PRIORITY_STATS

# DSTORAGE\_PRIORITY\_STATS

DirectStorage 統計資料。

## 語法

```cpp theme={null}
struct DSTORAGE_PRIORITY_STATS {
    UINT32 CurrentQueueCount;
    UINT32 MaxQueueCount;
    UINT32 CumulativeQueueCount;
    UINT32 TotalStatusCount;
    UINT32 TotalFenceCount;
    UINT32 PendingRequestCount;
    UINT32 TotalRequestCount;
    UINT64 TotalRequestSourceByteCount;
    UINT64 TotalRequestDestinationByteCount;
};
```

### 成員

*CurrentQueueCount*\
類型：UINT32

目前開啟的佇列數目。

*MaxQueueCount*\
類型：UINT32

同時開啟之佇列的最高數目。

*CumulativeQueueCount*\
類型：UINT32

已開啟佇列的累計數目。

*TotalStatusCount*\
類型：UINT32

狀態要求的總數。

*TotalFenceCount*\
類型：UINT32

柵欄要求的總數。

*PendingRequestCount*\
類型：UINT32

目前擱置中的要求數目。當 DirectStorage 子系統已開始
處理某個要求，但該要求尚未完成時，該要求即被視為
處於擱置狀態。
[IDStorageQueueX::Submit](/zh-TW/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_submit) 呼叫是通知
DirectStorage 開始處理指定佇列中要求的訊號。如果較低層級的 DirectStorage 資源
忙碌中，從 [IDStorageQueueX::Submit](/zh-TW/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_submit) 呼叫
到要求被視為擱置中之間，可能會有延遲。

*TotalRequestCount*\
類型：UINT32

已提交要求的總數。

*TotalRequestSourceByteCount*\
類型：UINT64

要求來源大小的總和。

*TotalRequestDestinationByteCount*\
類型：UINT64

要求目的地大小的總和。

## 備註

此結構會作為 [DSTORAGE\_STATS](/zh-TW/reference/system/dstorage/structs/dstorage_stats) 的一部分傳回，而 [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](/zh-TW/reference/system/dstorage/structs/dstorage_stats.md)
- [DStorage](/zh-TW/reference/system/dstorage/dstorage_members.md)
- [DSTORAGE_PRIORITY](/zh-TW/reference/system/dstorage/enums/dstorage_priority.md)
- [DSTORAGE_QUEUE_DESC](/zh-TW/reference/system/dstorage/structs/dstorage_queue_desc.md)
- [DSTORAGE_QUEUE_DESC1](/zh-TW/reference/system/dstorage/structs/dstorage_queue_desc1.md)
