Skip to main content

NewNetworkingProfiler

A static class in Root.Township, the global namespace.

Obsolete static profiler that turns the transport socket's byte and packet totals into per second rates. Started by ServerDiagnosticsManager, read by ServerProfilingData.

Fields​

1 private and internal field
MemberWhat it is
private static Dictionary<string, NewNetworkingProfiler.NetworkStat> statsThe stats, by name.

Properties​

MemberWhat it is
static float BytesPerSecond { get; }Outgoing bytes per second at the last Cache.
static float IncomingPacketsPerSecond { get; }Incoming packets per second at the last Cache.
static float OutgoingPacketsPerSecond { get; }Outgoing packets per second at the last Cache.

Methods​

MemberWhat it is
static void Cache()Samples each total and works out its rate since the last sample.
static void Init()Sets up the three stats from the current socket's transport.