DSTORAGE_STATS

DirectStorage 统计信息。

语法

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

低优先级队列的统计信息。

NormalPriorityStats
类型:DSTORAGE_PRIORITY_STATS

普通优先级队列的统计信息。

HighPriorityStats
类型:DSTORAGE_PRIORITY_STATS

高优先级队列的统计信息。

RealtimePriorityStats
类型:DSTORAGE_PRIORITY_STATS

实时优先级队列的统计信息。

CurrentOpenVirtualDiskCount
类型:UINT8

当前打开的虚拟光盘的数量(游戏包、DLC 包、开发人员暂存、PLCS)。

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 方法使用。

要求

头文件:dstorage_xs.h

支持的平台:Xbox Series 主机

另请参阅

DStorage