Files
UnrealEngineUWP/Engine/Source/Developer/Zen/Public/ZenStatistics.h
mark lintott dc0bd9e876 Blocking Zen HTTP stats request now runs async using futures
#rb Andriy.Tylychko
#fyi Zousar.Shaker
#jira UE-132849
#preflight 621e0c71e15c51d8c5bd5967

[CL 19196840 by mark lintott in ue5-main branch]
2022-03-01 07:20:31 -05:00

82 lines
1.3 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#if UE_WITH_ZEN
namespace UE::Zen {
struct FZenCacheSizeStats
{
double Disk = 0;
double Memory = 0;
};
struct FZenCacheStats
{
FZenCacheSizeStats Size;
int64 Hits = 0;
int64 Misses = 0;
double HitRatio = 0.0;
int64 UpstreamHits = 0;
double UpstreamRatio = 0.0;
};
struct FZenRequestStats
{
int64 Count = 0;
double RateMean = 0.0;
double TAverage = 0.0;
double TMin = 0.0;
double TMax = 0.0;
};
struct FZenEndPointStats
{
FString Name;
FString Url;
FString Health;
double HitRatio = 0.0;
double DownloadedMB = 0;
double UploadedMB = 0;
int64 ErrorCount = 0;
};
struct FZenUpstreamStats
{
bool Reading = false;
bool Writing = false;
int64 WorkerThreads = 0;
int64 QueueCount = 0;
double TotalUploadedMB = 0;
double TotalDownloadedMB = 0;
TArray<FZenEndPointStats> EndPointStats;
};
struct FZenCASSizeStats
{
int64 Tiny = 0;
int64 Small = 0;
int64 Large = 0;
int64 Total = 0;
};
struct FZenCASStats
{
FZenCASSizeStats Size;
};
struct FZenStats
{
FZenRequestStats RequestStats;
FZenCacheStats CacheStats;
FZenUpstreamStats UpstreamStats;
FZenRequestStats UpstreamRequestStats;
FZenCASStats CASStats;
bool IsValid = false;
};
} // namespace UE::Zen
#endif // UE_WITH_ZEN