Open 3D Engine Multiplayer Gem API Reference  22.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Multiplayer::MultiplayerStats Struct Reference

Classes

struct  ComponentStats
 
struct  EventHandlers
 
struct  Events
 
struct  Metric
 

Public Types

using MetricRingbuffer = AZStd::array< uint64_t, RingbufferSamples >
 

Public Member Functions

void ReserveComponentStats (NetComponentId netComponentId, uint16_t propertyCount, uint16_t rpcCount)
 
void RecordEntitySerializeStart (AzNetworking::SerializerMode mode, AZ::EntityId entityId, const char *entityName)
 
void RecordComponentSerializeEnd (AzNetworking::SerializerMode mode, NetComponentId netComponentId)
 
void RecordEntitySerializeStop (AzNetworking::SerializerMode mode, AZ::EntityId entityId, const char *entityName)
 
void RecordPropertySent (NetComponentId netComponentId, PropertyIndex propertyId, uint32_t totalBytes)
 
void RecordPropertyReceived (NetComponentId netComponentId, PropertyIndex propertyId, uint32_t totalBytes)
 
void RecordRpcSent (AZ::EntityId entityId, const char *entityName, NetComponentId netComponentId, RpcIndex rpcId, uint32_t totalBytes)
 
void RecordRpcReceived (AZ::EntityId entityId, const char *entityName, NetComponentId netComponentId, RpcIndex rpcId, uint32_t totalBytes)
 
void TickStats (AZ::TimeMs metricFrameTimeMs)
 
Metric CalculateComponentPropertyUpdateSentMetrics (NetComponentId netComponentId) const
 
Metric CalculateComponentPropertyUpdateRecvMetrics (NetComponentId netComponentId) const
 
Metric CalculateComponentRpcsSentMetrics (NetComponentId netComponentId) const
 
Metric CalculateComponentRpcsRecvMetrics (NetComponentId netComponentId) const
 
Metric CalculateTotalPropertyUpdateSentMetrics () const
 
Metric CalculateTotalPropertyUpdateRecvMetrics () const
 
Metric CalculateTotalRpcsSentMetrics () const
 
Metric CalculateTotalRpcsRecvMetrics () const
 
void ConnectHandlers (EventHandlers &handlers)
 

Public Attributes

uint64_t m_entityCount = 0
 
uint64_t m_clientConnectionCount = 0
 
uint64_t m_serverConnectionCount = 0
 
uint64_t m_recordMetricIndex = 0
 
AZ::TimeMs m_totalHistoryTimeMs = AZ::Time::ZeroTimeMs
 
AZStd::vector< ComponentStatsm_componentStats
 
Events m_events
 

Static Public Attributes

static const uint32_t RingbufferSamples = 32
 

The documentation for this struct was generated from the following file: