diff options
author | Justin Clarke Casey | 2008-07-15 18:07:23 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-07-15 18:07:23 +0000 |
commit | d75cacb050777493bfa880f5fa694590cba0ebe4 (patch) | |
tree | 6e41cce9c0d3a0c59322350068ed5460849ed2b1 /OpenSim/Region/Environment/Scenes/SimStatsReporter.cs | |
parent | cleanup: fixing CamelCase issue with RestDeserialiseHandler. (diff) | |
download | opensim-SC_OLD-d75cacb050777493bfa880f5fa694590cba0ebe4.zip opensim-SC_OLD-d75cacb050777493bfa880f5fa694590cba0ebe4.tar.gz opensim-SC_OLD-d75cacb050777493bfa880f5fa694590cba0ebe4.tar.bz2 opensim-SC_OLD-d75cacb050777493bfa880f5fa694590cba0ebe4.tar.xz |
* Expose client statistics to the console via 'show stats'
* Potentially useful for diagnostics without needing to log in a client
* Packet queue statistics commented out for now pending a better way to cope with the information overload
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SimStatsReporter.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SimStatsReporter.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs index 609b4ed..60b5c10 100644 --- a/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs +++ b/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs | |||
@@ -29,6 +29,7 @@ using System; | |||
29 | using System.Timers; | 29 | using System.Timers; |
30 | using libsecondlife.Packets; | 30 | using libsecondlife.Packets; |
31 | using OpenSim.Framework; | 31 | using OpenSim.Framework; |
32 | using OpenSim.Framework.Statistics; | ||
32 | using OpenSim.Region.Environment.Interfaces; | 33 | using OpenSim.Region.Environment.Interfaces; |
33 | 34 | ||
34 | namespace OpenSim.Region.Environment.Scenes | 35 | namespace OpenSim.Region.Environment.Scenes |
@@ -114,7 +115,6 @@ namespace OpenSim.Region.Environment.Scenes | |||
114 | 115 | ||
115 | public SimStatsReporter(Scene scene) | 116 | public SimStatsReporter(Scene scene) |
116 | { | 117 | { |
117 | |||
118 | statsUpdateFactor = (float)(statsUpdatesEveryMS / 1000); | 118 | statsUpdateFactor = (float)(statsUpdatesEveryMS / 1000); |
119 | m_scene = scene; | 119 | m_scene = scene; |
120 | ReportingRegion = scene.RegionInfo; | 120 | ReportingRegion = scene.RegionInfo; |
@@ -126,6 +126,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
126 | m_report.Interval = statsUpdatesEveryMS; | 126 | m_report.Interval = statsUpdatesEveryMS; |
127 | m_report.Elapsed += new ElapsedEventHandler(statsHeartBeat); | 127 | m_report.Elapsed += new ElapsedEventHandler(statsHeartBeat); |
128 | m_report.Enabled = true; | 128 | m_report.Enabled = true; |
129 | |||
130 | if (StatsManager.SimExtraStats != null) | ||
131 | OnSendStatsResult += StatsManager.SimExtraStats.ReceiveClassicSimStatsPacket; | ||
129 | } | 132 | } |
130 | 133 | ||
131 | public void SetUpdateMS(int ms) | 134 | public void SetUpdateMS(int ms) |