diff options
author | Justin Clark-Casey (justincc) | 2011-10-10 23:48:53 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-10-10 23:48:53 +0100 |
commit | 62aad4c18f1ebc0780ce47cf179f3d5550ff0837 (patch) | |
tree | c238bbc4d994b7577fa93a25fdbde5f9df2caac6 /OpenSim/Region/CoreModules/Framework/Monitoring/Monitors/ThreadCountMonitor.cs | |
parent | Convert getLastReportedSimFPS() and getLastReportedSimStats() into more idiom... (diff) | |
download | opensim-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/ThreadCountMonitor.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/Monitoring/Monitors/ThreadCountMonitor.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/Monitoring/Monitors/ThreadCountMonitor.cs b/OpenSim/Region/CoreModules/Framework/Monitoring/Monitors/ThreadCountMonitor.cs index 63ddf07..fcfe32a 100644 --- a/OpenSim/Region/CoreModules/Framework/Monitoring/Monitors/ThreadCountMonitor.cs +++ b/OpenSim/Region/CoreModules/Framework/Monitoring/Monitors/ThreadCountMonitor.cs | |||
@@ -32,12 +32,17 @@ namespace OpenSim.Region.CoreModules.Framework.Monitoring.Monitors | |||
32 | { | 32 | { |
33 | #region Implementation of IMonitor | 33 | #region Implementation of IMonitor |
34 | 34 | ||
35 | public string GetName() | ||
36 | { | ||
37 | return "ThreadCountMonitor"; | ||
38 | } | ||
39 | |||
35 | public double GetValue() | 40 | public double GetValue() |
36 | { | 41 | { |
37 | return System.Diagnostics.Process.GetCurrentProcess().Threads.Count; | 42 | return System.Diagnostics.Process.GetCurrentProcess().Threads.Count; |
38 | } | 43 | } |
39 | 44 | ||
40 | public string GetName() | 45 | public string GetFriendlyName() |
41 | { | 46 | { |
42 | return "Total Threads"; | 47 | return "Total Threads"; |
43 | } | 48 | } |