aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Framework/Monitoring/Monitors/LastFrameTimeMonitor.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-10-10 23:48:53 +0100
committerJustin Clark-Casey (justincc)2011-10-10 23:48:53 +0100
commit62aad4c18f1ebc0780ce47cf179f3d5550ff0837 (patch)
treec238bbc4d994b7577fa93a25fdbde5f9df2caac6 /OpenSim/Region/CoreModules/Framework/Monitoring/Monitors/LastFrameTimeMonitor.cs
parentConvert getLastReportedSimFPS() and getLastReportedSimStats() into more idiom... (diff)
downloadopensim-SC_OLD-62aad4c18f1ebc0780ce47cf179f3d5550ff0837.zip
opensim-SC_OLD-62aad4c18f1ebc0780ce47cf179f3d5550ff0837.tar.gz
opensim-SC_OLD-62aad4c18f1ebc0780ce47cf179f3d5550ff0837.tar.bz2
opensim-SC_OLD-62aad4c18f1ebc0780ce47cf179f3d5550ff0837.tar.xz
Add other region stats (total frame time, physics fps, etc.) currently missing from MonitorModule
Unlike the other 3 stats mechanisms, monitor data can be queried per individual region, which makes this useful. This doesn't affect an of the existing monitored stats.
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework/Monitoring/Monitors/LastFrameTimeMonitor.cs')
-rw-r--r--OpenSim/Region/CoreModules/Framework/Monitoring/Monitors/LastFrameTimeMonitor.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/Monitoring/Monitors/LastFrameTimeMonitor.cs b/OpenSim/Region/CoreModules/Framework/Monitoring/Monitors/LastFrameTimeMonitor.cs
index f21a3ae..3acb4ad 100644
--- a/OpenSim/Region/CoreModules/Framework/Monitoring/Monitors/LastFrameTimeMonitor.cs
+++ b/OpenSim/Region/CoreModules/Framework/Monitoring/Monitors/LastFrameTimeMonitor.cs
@@ -41,12 +41,17 @@ namespace OpenSim.Region.CoreModules.Framework.Monitoring.Monitors
41 41
42 #region Implementation of IMonitor 42 #region Implementation of IMonitor
43 43
44 public string GetName()
45 {
46 return "LastFrameTimeMonitor";
47 }
48
44 public double GetValue() 49 public double GetValue()
45 { 50 {
46 return Environment.TickCount - m_scene.MonitorLastFrameTick; 51 return Environment.TickCount - m_scene.MonitorLastFrameTick;
47 } 52 }
48 53
49 public string GetName() 54 public string GetFriendlyName()
50 { 55 {
51 return "Last Completed Frame At"; 56 return "Last Completed Frame At";
52 } 57 }