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); }
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); }