aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2013-07-23 00:15:58 +0100
committerJustin Clark-Casey (justincc)2013-07-23 00:35:34 +0100
commit60732c96efd149bbb0484b327b00463dc5b81aff (patch)
tree92600972becc714b6e2f6af61fbd9eaecf1e38d6 /OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
parentRecord raw number of UDP receives as clientstack.IncomingUDPReceivesCount (diff)
downloadopensim-SC-60732c96efd149bbb0484b327b00463dc5b81aff.zip
opensim-SC-60732c96efd149bbb0484b327b00463dc5b81aff.tar.gz
opensim-SC-60732c96efd149bbb0484b327b00463dc5b81aff.tar.bz2
opensim-SC-60732c96efd149bbb0484b327b00463dc5b81aff.tar.xz
Add clientstack.OutgoingUDPSendsCount stat to show number of outbound UDP packets sent by a region per second
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
index b4044b5..d0ed7e8 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
@@ -83,6 +83,11 @@ namespace OpenMetaverse
83 public int UdpReceives { get; private set; } 83 public int UdpReceives { get; private set; }
84 84
85 /// <summary> 85 /// <summary>
86 /// Number of UDP sends
87 /// </summary>
88 public int UdpSends { get; private set; }
89
90 /// <summary>
86 /// Number of receives over which to establish a receive time average. 91 /// Number of receives over which to establish a receive time average.
87 /// </summary> 92 /// </summary>
88 private readonly static int s_receiveTimeSamples = 500; 93 private readonly static int s_receiveTimeSamples = 500;
@@ -381,6 +386,8 @@ namespace OpenMetaverse
381 { 386 {
382// UDPPacketBuffer buf = (UDPPacketBuffer)result.AsyncState; 387// UDPPacketBuffer buf = (UDPPacketBuffer)result.AsyncState;
383 m_udpSocket.EndSendTo(result); 388 m_udpSocket.EndSendTo(result);
389
390 UdpSends++;
384 } 391 }
385 catch (SocketException) { } 392 catch (SocketException) { }
386 catch (ObjectDisposedException) { } 393 catch (ObjectDisposedException) { }