aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SimStatsReporter.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-07-15 18:07:23 +0000
committerJustin Clarke Casey2008-07-15 18:07:23 +0000
commitd75cacb050777493bfa880f5fa694590cba0ebe4 (patch)
tree6e41cce9c0d3a0c59322350068ed5460849ed2b1 /OpenSim/Region/Environment/Scenes/SimStatsReporter.cs
parentcleanup: fixing CamelCase issue with RestDeserialiseHandler. (diff)
downloadopensim-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.cs5
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;
29using System.Timers; 29using System.Timers;
30using libsecondlife.Packets; 30using libsecondlife.Packets;
31using OpenSim.Framework; 31using OpenSim.Framework;
32using OpenSim.Framework.Statistics;
32using OpenSim.Region.Environment.Interfaces; 33using OpenSim.Region.Environment.Interfaces;
33 34
34namespace OpenSim.Region.Environment.Scenes 35namespace 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)