using Unity.Profiling; namespace Mirage.NetworkProfiler { internal static class Counters { public static readonly ProfilerCategory Category = ProfilerCategory.Network; private const ProfilerMarkerDataUnit COUNT = ProfilerMarkerDataUnit.Count; private const ProfilerMarkerDataUnit BYTES = ProfilerMarkerDataUnit.Bytes; public static readonly ProfilerCounter PlayerCount = new ProfilerCounter(Category, Names.PLAYER_COUNT, COUNT); public static readonly ProfilerCounter CharCount = new ProfilerCounter(Category, Names.CHARACTER_COUNT, COUNT); public static readonly ProfilerCounter ObjectCount = new ProfilerCounter(Category, Names.OBJECT_COUNT, COUNT); public static readonly ProfilerCounter SentCount = new ProfilerCounter(Category, Names.SENT_COUNT, COUNT); public static readonly ProfilerCounter SentBytes = new ProfilerCounter(Category, Names.SENT_BYTES, BYTES); public static readonly ProfilerCounter SentPerSecond = new ProfilerCounter(Category, Names.SENT_PER_SECOND, BYTES); public static readonly ProfilerCounter ReceiveCount = new ProfilerCounter(Category, Names.RECEIVED_COUNT, COUNT); public static readonly ProfilerCounter ReceiveBytes = new ProfilerCounter(Category, Names.RECEIVED_BYTES, BYTES); public static readonly ProfilerCounter ReceivePerSecond = new ProfilerCounter(Category, Names.RECEIVED_PER_SECOND, BYTES); } }