Navigation
API > API/Runtime > API/Runtime/Engine
| Name | UNetworkMetricsDatabase |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Net/NetworkMetricsDatabase.h |
| Include Path | #include "Net/NetworkMetricsDatabase.h" |
Syntax
UCLASS (MinimalAPI)
class UNetworkMetricsDatabase : public UObject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UNetworkMetricsDatabase
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FNameAndType | TPair< FName, EMetricType > | Net/NetworkMetricsDatabase.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LastReportListener | TMap< TWeakObjectPtr< UNetworkMetricsBaseListener >, double > | The time, in seconds, metrics were reported to a listener. | Net/NetworkMetricsDatabase.h | |
| ListenersToMetrics | TMap< TWeakObjectPtr< UNetworkMetricsBaseListener >, TSet< FNameAndType > > | Net/NetworkMetricsDatabase.h | ||
| MetricFloats | TMap< FName, UE::Net::FNetworkMetric< float > > | Net/NetworkMetricsDatabase.h | ||
| MetricInts | TMap< FName, UE::Net::FNetworkMetric< int64 > > | Net/NetworkMetricsDatabase.h | ||
| MetricTypes | TMap< FName, EMetricType > | Net/NetworkMetricsDatabase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Contains
(
const FName MetricName |
Returns true if a metric has been created in the database. | Net/NetworkMetricsDatabase.h | |
void CreateFloat
(
const FName MetricName, |
Add a floating point metric. | Net/NetworkMetricsDatabase.h | |
void CreateInt
(
const FName MetricName, |
Add an integer metric. | Net/NetworkMetricsDatabase.h | |
bool IncrementInt
(
const FName MetricName, |
Increment the value of an existing integer metric. | Net/NetworkMetricsDatabase.h | |
void ProcessListeners() |
Call all registered listeners. | Net/NetworkMetricsDatabase.h | |
void Register
(
const FName MetricName, |
Register a listener to be called for a given metric. | Net/NetworkMetricsDatabase.h | |
void Reset() |
Remove all registered metrics and listeners. | Net/NetworkMetricsDatabase.h | |
bool SetFloat
(
const FName MetricName, |
Set the value of an existing floating point metric. | Net/NetworkMetricsDatabase.h | |
bool SetInt
(
const FName MetricName, |
Set the value of an existing integer metric. | Net/NetworkMetricsDatabase.h | |
bool SetMaxFloat
(
const FName MetricName, |
Set the value of a floating point metric if it's bigger than the existing value. | Net/NetworkMetricsDatabase.h | |
bool SetMaxInt
(
const FName MetricName, |
Set the value of an integer metric if it's bigger than the existing value. | Net/NetworkMetricsDatabase.h | |
bool SetMinFloat
(
const FName MetricName, |
Set the value of a floating point metric if it's smaller than the existing value. | Net/NetworkMetricsDatabase.h | |
bool SetMinInt
(
const FName MetricName, |
Set the value of an integer metric if it's smaller than the existing value. | Net/NetworkMetricsDatabase.h |