From 56f1b03cd0eccb8549b3f87f76b2a9494239b585 Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Thu, 18 Dec 2008 13:16:41 +0000 Subject: * Added "show queues" command that shows throttling queues for all clients. *** This only works for LLCLientView at the moment *** --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 8 +++++++- OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 9d6e3af..5ce5235 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -52,7 +52,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP /// Handles new client connections /// Constructor takes a single Packet and authenticates everything /// - public class LLClientView : IClientAPI, IClientCore, IClientIM, IClientChat + public class LLClientView : IClientAPI, IClientCore, IClientIM, IClientChat, IStatsCollector { private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); @@ -8093,5 +8093,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP } } } + + public string Report() + { + LLPacketHandler handler = (LLPacketHandler) m_PacketHandler; + return handler.PacketQueue.GetStats(); + } } } diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs index 4383493..365c35f 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs @@ -610,7 +610,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP // See IPullStatsProvider public string GetStats() { - return string.Format("{0,7} {1,7} {2,7} {3,7} {4,7} {5,7} {6,7} {7,7} {8,7} {9,7}", + return string.Format("{0,7} {1,7} {2,7} {3,7} {4,7} {5,7} {6,7} {7,7} {8,7} {9,7}", SendQueue.Count(), IncomingPacketQueue.Count, OutgoingPacketQueue.Count, -- cgit v1.1