static LoginServerMonitor() { var contextName = "Login[" + LoginServer.Instance.Id + "]"; var impl = new ScorpionServerMonitor(contextName); TickRate = impl.Meter("TickRate", SMUnit.Calls); LoginRate = impl.Meter("LoginRate", SMUnit.Items); }
static ChatServerMonitor() { var contextName = "Chat[" + ChatServer.Instance.Id + "]"; var impl = new ScorpionServerMonitor(contextName); TickRate = impl.Meter("TickRate", SMUnit.Calls); ChatRate = impl.Meter("ChatRate", SMUnit.Items); }
static GateServerMonitor() { var contextName = string.Format("Gate[{0}]", GateServer.Instance.Id); var impl = new ScorpionServerMonitor(contextName); ReceivePacketSize = impl.Meter("ReceivePacketSize", SMUnit.Bytes); ReceivePacketNumber = impl.Meter("ReceivePacketNumber", SMUnit.Requests); SendPacketSize = impl.Meter("SendPacketSize", SMUnit.Bytes); SendPacketNumber = impl.Meter("SendPacketNumber", SMUnit.Requests); ConnectionNumber = impl.Conter("ConnectionNumber", SMUnit.Items); }
static SceneServerMonitor() { var contextName = "Scene[" + SceneServer.Instance.Id + "]"; var impl = new ScorpionServerMonitor(contextName); TickRate = impl.Meter("TickRate", SMUnit.Calls); SceneTotalNumber = impl.Conter("SceneTotalNumber", SMUnit.Items); PlayerNumber = impl.Conter("PlayerNumber", SMUnit.Items); ObjNumber = impl.Conter("ObjNumber", SMUnit.Items); CreatedDropItemRate = impl.Meter("CreatedDropItemRate", SMUnit.Items); UseSkillRate = impl.Meter("UseSkillRate", SMUnit.Calls); }
static TeamServerMonitor() { var contextName = "Team[" + TeamServer.Instance.Id + "]"; var impl = new ScorpionServerMonitor(contextName); TickRate = impl.Meter("TickRate", SMUnit.Calls); }
static LogicServerMonitor() { var contextName = "Logic[" + LogicServer.Instance.Id + "]"; var impl = new ScorpionServerMonitor(contextName); TickRate = impl.Meter("TickRate", SMUnit.Calls); DiamondNumber = impl.Conter("DiamondNumber", SMUnit.Items); }