Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Net
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UNetworkMetricsBaseListener
- UNetworkMetricsStats
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Net/NetworkMetricsDatabase.h |
| Include | #include "Net/NetworkMetricsDatabase.h" |
Syntax
UCLASS ()
class UNetworkMetricsStats : public UNetworkMetricsBaseListener
Remarks
A metrics listener that reports a metric to a single Stat.
The function SetStatName() is expected to be called before the listener is registered with FNetworkMetricsDatabase::Register(). This function will associate the instance of UNetworkMetricStats with a specific Stat.
Since each instance of this class is associated with a single Stat it can only be registered as a listener to a single metric in FNetworkMetricsDatabase.
UNetworkMetricsStats is not intended to be used from configuration files!
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | SetStatName
(
const FName Name |
Set the name of the pre-defined Stat (normally defined with DEFINE_STAT()). |
Overridden from UNetworkMetricsBaseListener
| Type | Name | Description | |
|---|---|---|---|
| void | Report
(
const UE::Net::FNetworkMetricSnapshot& Snapshot |