Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        static TeamServerMonitor()
        {
            var contextName = "Team[" + TeamServer.Instance.Id + "]";
            var impl        = new ScorpionServerMonitor(contextName);

            TickRate = impl.Meter("TickRate", SMUnit.Calls);
        }
Exemplo n.º 6
0
        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);
        }