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
"
7
#include "
HAL/CriticalSection.h
"
8
#include <vector>
9
#include "
IStorageServerPlatformFile.h
"
10
11
#if !UE_BUILD_SHIPPING
12
class
FStorageServerConnectionDebug
13
{
14
public
:
15
FStorageServerConnectionDebug
(
IStorageServerPlatformFile
*
InStorageServerPlatformFile
)
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
25
private
:
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
54
FCriticalSection
CS;
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
Canvas.h
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
CriticalSection.h
FCriticalSection
UE::FPlatformRecursiveMutex FCriticalSection
Definition
CriticalSection.h:53
IStorageServerPlatformFile.h
EMovieSceneConditionCheckFrequency::OnTick
@ OnTick
EUnitType::Time
@ Time
uint32
uint32_t uint32
Definition
binka_ue_file_header.h:6
APlayerController
Definition
PlayerController.h:261
FStorageServerConnectionDebug
Definition
StorageServerConnectionDebug.h:13
FStorageServerConnectionDebug::FStorageServerConnectionDebug
FStorageServerConnectionDebug(IStorageServerPlatformFile *InStorageServerPlatformFile)
Definition
StorageServerConnectionDebug.h:15
FStorageServerConnectionDebug::OnDraw
void OnDraw(UCanvas *, APlayerController *)
Definition
StorageServerConnectionDebug.cpp:175
IStorageServerPlatformFile
Definition
IStorageServerPlatformFile.h:9
UCanvas
Definition
Canvas.h:159
UTexture2D
Definition
Texture2D.h:26
FAndroidTime::Seconds
static double Seconds()
Definition
AndroidPlatformTime.h:20
Engine
Source
Runtime
StorageServerClientDebug
Private
StorageServerConnectionDebug.h
Generated by
1.9.8