UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StorageServerConnectionDebug.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Engine/Canvas.h"
8#include <vector>
10
11#if !UE_BUILD_SHIPPING
13{
14public:
16 : StorageServerPlatformFile(InStorageServerPlatformFile)
17 , HostAddress(InStorageServerPlatformFile->GetHostAddr())
18 {
19 IndicatorLastTime = FPlatformTime::Seconds();
20 }
21
22 bool OnTick(float); // FTickerDelegate
23 void OnDraw(UCanvas*, APlayerController*); // FDebugDrawDelegate
24
25private:
26 void LoadZenStreamingSettings();
27
28 void DrawZenIndicator(UCanvas* Canvas);
29 void CreateZenIcon();
30 void DestroyZenIcon();
31
32 double MaxReqThroughput = 0.0;
33 double MinReqThroughput = 0.0;
34 uint32 ReqCount = 0;
35 double Throughput = 0.0;
36
37 struct HistoryItem
38 {
39 double Time;
40 double MaxRequestThroughput;
41 double MinRequestThroughput;
42 double Throughput;
43 uint32 RequestCount;
44 };
45
46 std::vector<HistoryItem> History = {{0, 0, 0, 0, 0}};
47
48 static constexpr float UpdateStatsTimer = 1.0;
49 double UpdateStatsTime = 0.0;
50
51 IStorageServerPlatformFile* StorageServerPlatformFile = nullptr;
52 FString HostAddress;
53
55
56 class UTexture2D* ZenIcon = nullptr;
57 bool bDestroyZenIcon = false;
58 double IndicatorElapsedTime = 0.0;
59 double IndicatorLastTime = 0.0;
60};
61#endif // !UE_BUILD_SHIPPING
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE::FPlatformRecursiveMutex FCriticalSection
Definition CriticalSection.h:53
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition PlayerController.h:261
Definition StorageServerConnectionDebug.h:13
FStorageServerConnectionDebug(IStorageServerPlatformFile *InStorageServerPlatformFile)
Definition StorageServerConnectionDebug.h:15
void OnDraw(UCanvas *, APlayerController *)
Definition StorageServerConnectionDebug.cpp:175
Definition IStorageServerPlatformFile.h:9
Definition Canvas.h:159
Definition Texture2D.h:26
static double Seconds()
Definition AndroidPlatformTime.h:20