Skip to main content

NetworkSerializedProfiler

A static class in Root.Township, Alta.Networking.

Collects the shared serialize timers of every INetworkSerialized type marked with ProfileNetworkSerializedAttribute, for performance stats.

Fields​

MemberWhat it is
static Dictionary<string, AccumulativeAverageCount> prepareForWriteTimersEach profiled type's public static prepareForWriteTimer, by type name.
static Dictionary<string, AccumulativeAverageCount> serializeTimersEach profiled type's public static serializeTimer, by type name.

Methods​

MemberWhat it is
static void ResetAllTimers()Records and resets every collected timer, plus the EntitySerializer prepare and serialize durations.