Navigation
API > API/Runtime > API/Runtime/Engine
A metrics listener that prints stats to a log statement at a fixed frequency to the LogNetworkMetrics log category.
To use UNetworkMetricsLog in a configuration file, the class must be used when registering a listener:
[/Script/Engine.NetworkMetricsConfig] +Listeners=(MetricName=ExampleMetric, ClassName=/Script/Engine.NetworkMetricsLog)
Additionally, the following log category must be set:
[Core.Log] LogNetworkMetrics=Log
| Name | UNetworkMetricsLog |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Net/NetworkMetricsDatabase.h |
| Include Path | #include "Net/NetworkMetricsDatabase.h" |
Syntax
UCLASS (MinimalAPI)
class UNetworkMetricsLog : public UNetworkMetricsBaseListener
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UNetworkMetricsBaseListener → UNetworkMetricsLog
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UNetworkMetricsLog() |
Net/NetworkMetricsDatabase.h |
Functions
Public
Overridden from UNetworkMetricsBaseListener
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Report
(
const UE::Net::FNetworkMetricSnapshot& Snapshot |
Net/NetworkMetricsDatabase.h |