Add last frame time monitor to MonitorModule now that this value is useful

0.7.3-extended
Justin Clark-Casey (justincc) 2012-06-11 23:30:11 +01:00
parent 3d400dd677
commit 3e75083d2d
1 changed files with 8 additions and 0 deletions

View File

@ -341,6 +341,14 @@ namespace OpenSim.Region.CoreModules.Framework.Monitoring
m => m.Scene.StatsReporter.LastReportedSimStats[11],
m => string.Format("{0} ms", m.GetValue())));
m_staticMonitors.Add(
new GenericMonitor(
m_scene,
"SpareFrameTimeMonitor",
"Spare Frame Time",
m => m.Scene.StatsReporter.LastReportedSimStats[21],
m => string.Format("{0} ms", m.GetValue())));
m_alerts.Add(new DeadlockAlert(m_staticMonitors.Find(x => x is LastFrameTimeMonitor) as LastFrameTimeMonitor));
foreach (IAlert alert in m_alerts)