diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs index f5c0b05..d3823f3 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs | |||
@@ -70,8 +70,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
70 | StatsManager.RegisterStat( | 70 | StatsManager.RegisterStat( |
71 | new Stat( | 71 | new Stat( |
72 | "IncomingPacketsProcessedCount", | 72 | "IncomingPacketsProcessedCount", |
73 | "Number of inbound UDP packets processed", | 73 | "Number of inbound LL protocol packets processed", |
74 | "Number of inbound UDP packets processed", | 74 | "Number of inbound LL protocol packets processed", |
75 | "", | 75 | "", |
76 | "clientstack", | 76 | "clientstack", |
77 | scene.Name, | 77 | scene.Name, |
@@ -79,6 +79,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
79 | MeasuresOfInterest.AverageChangeOverTime, | 79 | MeasuresOfInterest.AverageChangeOverTime, |
80 | stat => stat.Value = m_udpServer.IncomingPacketsProcessed, | 80 | stat => stat.Value = m_udpServer.IncomingPacketsProcessed, |
81 | StatVerbosity.Debug)); | 81 | StatVerbosity.Debug)); |
82 | |||
83 | StatsManager.RegisterStat( | ||
84 | new Stat( | ||
85 | "AverageUDPProcessTime", | ||
86 | "Average number of milliseconds taken to process each incoming UDP packet in a sample.", | ||
87 | "This is for initial receive processing which is separate from the later client LL packet processing stage.", | ||
88 | "ms", | ||
89 | "clientstack", | ||
90 | scene.Name, | ||
91 | StatType.Pull, | ||
92 | MeasuresOfInterest.None, | ||
93 | stat => stat.Value = m_udpServer.AverageReceiveTicksForLastSamplePeriod / TimeSpan.TicksPerMillisecond, | ||
94 | // stat => | ||
95 | // stat.Value = Math.Round(m_udpServer.AverageReceiveTicksForLastSamplePeriod / TimeSpan.TicksPerMillisecond, 7), | ||
96 | StatVerbosity.Debug)); | ||
82 | } | 97 | } |
83 | 98 | ||
84 | public bool HandlesRegion(Location x) | 99 | public bool HandlesRegion(Location x) |