Skip to main content

NetworkingStatisticsListNonSerialized<T>

An abstract class in Root.Township, Alta.Utilities.Profiling.NetworkTransportMetrics.

Same as NetworkingStatisticsList<T> but the statistics list is not serialized, so it does not show in the inspector.

Constructors​

MemberWhat it is
protected NetworkingStatisticsListNonSerialized()Creates a NetworkingStatisticsListNonSerialized with default values.

Fields​

MemberWhat it is
protected List<T> statisticsThe statistics, with possible null gaps.
2 private and internal fields
MemberWhat it is
private float averageBytesPerFrameAllTimeTotal bytes over total message count across the list.
private float totalBytesPerLastSecondSum of every statistic's last-second bytes.

Properties​

MemberWhat it is
string Name { get; protected set; }Display name used as the report heading.
IEnumerable<T> Statistics { get; }The statistics in the list, read only.

Methods​

MemberWhat it is
string CreateSummaryDump(float dumpDuration)Returns a text report: the list name, its byte totals, then one summary line per statistic.
void ResetAll()Resets the totals of every statistic in the list.
virtual void UpdateTotalBytesPerFrame()Updates each statistic's per-frame value and the list's average bytes per message.
virtual void UpdateTotalBytesPerLastSecond()Updates each statistic's last-second value and sums them.
protected void EnsureStatisticsListCapacity(int index)Pads the list with nulls so the given index exists.