aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-06-11 23:30:11 +0100
committerJustin Clark-Casey (justincc)2012-06-11 23:30:11 +0100
commita927787434a952bc12d7255b2de8ac723c6fd6cc (patch)
tree9d0a4ef343a8e8d3a10ede86cbf7b36744e143ec /OpenSim
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-a927787434a952bc12d7255b2de8ac723c6fd6cc.zip
opensim-SC_OLD-a927787434a952bc12d7255b2de8ac723c6fd6cc.tar.gz
opensim-SC_OLD-a927787434a952bc12d7255b2de8ac723c6fd6cc.tar.bz2
opensim-SC_OLD-a927787434a952bc12d7255b2de8ac723c6fd6cc.tar.xz
Add last frame time monitor to MonitorModule now that this value is useful
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs b/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs
index 4a8c369..e135c21 100644
--- a/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/Monitoring/MonitorModule.cs
@@ -341,6 +341,14 @@ namespace OpenSim.Region.CoreModules.Framework.Monitoring
341 m => m.Scene.StatsReporter.LastReportedSimStats[11], 341 m => m.Scene.StatsReporter.LastReportedSimStats[11],
342 m => string.Format("{0} ms", m.GetValue()))); 342 m => string.Format("{0} ms", m.GetValue())));
343 343
344 m_staticMonitors.Add(
345 new GenericMonitor(
346 m_scene,
347 "SpareFrameTimeMonitor",
348 "Spare Frame Time",
349 m => m.Scene.StatsReporter.LastReportedSimStats[21],
350 m => string.Format("{0} ms", m.GetValue())));
351
344 m_alerts.Add(new DeadlockAlert(m_staticMonitors.Find(x => x is LastFrameTimeMonitor) as LastFrameTimeMonitor)); 352 m_alerts.Add(new DeadlockAlert(m_staticMonitors.Find(x => x is LastFrameTimeMonitor) as LastFrameTimeMonitor));
345 353
346 foreach (IAlert alert in m_alerts) 354 foreach (IAlert alert in m_alerts)