Skip to main content

NetworkTransportHostStatistic

A class in Root.Township, Alta.Utilities.Profiling.NetworkTransportMetrics.

UNET transport statistics for one host ID: message queue sizes plus outgoing message, packet and byte counts read from NetworkTransport.

Constructors​

MemberWhat it is
NetworkTransportHostStatistic(int hostIdentifier)Creates a NetworkTransportHostStatistic from hostIdentifier.

Fields​

2 private and internal fields
MemberWhat it is
private NetworkTransportCountStatisticField incomingMessageQueueSizeCounter for the queue of incoming messages waiting to be processed.
private NetworkTransportCountStatisticField outgoingMessageQueueSizeCounter for the queue of outgoing messages waiting to be sent.

Properties​

MemberWhat it is
int HostIdentifier { get; private set; }The UNET host ID these statistics read from.

Methods​

MemberWhat it is
override string CreateSummaryDump(float statisticDuration)Adds the incoming and outgoing queue size lines ahead of the base outgoing report.
override void ResetAll()Resets the outgoing counters and both queue size counters.
override void UpdateAllStatisticValues()Reads the queue sizes and outgoing packet and byte counts. The outgoing message count is not refreshed here.
protected override void SetupFields()Creates each counter with a getter that calls the matching NetworkTransport host query.
protected override void UpdateTotalBytesPerLastSecondForExtraFields()Updates the last-second values of the two queue size counters.