diff options
author | Melanie | 2012-10-17 00:12:30 +0100 |
---|---|---|
committer | Melanie | 2012-10-17 00:12:30 +0100 |
commit | 39cbf4f7a114dca999afc42c74bfd100212e3842 (patch) | |
tree | b0b3f9f1350b92eca7dea1460a679dfa8d0ea378 /OpenSim/Framework/Monitoring/MemoryWatchdog.cs | |
parent | Merge branch 'master' into careminster (diff) | |
parent | minor: Make BasicCircuitTests.SetUp() call overriden base method instead of i... (diff) | |
download | opensim-SC-39cbf4f7a114dca999afc42c74bfd100212e3842.zip opensim-SC-39cbf4f7a114dca999afc42c74bfd100212e3842.tar.gz opensim-SC-39cbf4f7a114dca999afc42c74bfd100212e3842.tar.bz2 opensim-SC-39cbf4f7a114dca999afc42c74bfd100212e3842.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Framework/Monitoring/BaseStatsCollector.cs
Diffstat (limited to 'OpenSim/Framework/Monitoring/MemoryWatchdog.cs')
-rw-r--r-- | OpenSim/Framework/Monitoring/MemoryWatchdog.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Framework/Monitoring/MemoryWatchdog.cs b/OpenSim/Framework/Monitoring/MemoryWatchdog.cs index a23cf1f..c6010cd 100644 --- a/OpenSim/Framework/Monitoring/MemoryWatchdog.cs +++ b/OpenSim/Framework/Monitoring/MemoryWatchdog.cs | |||
@@ -60,7 +60,7 @@ namespace OpenSim.Framework.Monitoring | |||
60 | private static bool m_enabled; | 60 | private static bool m_enabled; |
61 | 61 | ||
62 | /// <summary> | 62 | /// <summary> |
63 | /// Average memory churn in bytes per millisecond. | 63 | /// Last memory churn in bytes per millisecond. |
64 | /// </summary> | 64 | /// </summary> |
65 | public static double AverageMemoryChurn | 65 | public static double AverageMemoryChurn |
66 | { | 66 | { |
@@ -68,6 +68,14 @@ namespace OpenSim.Framework.Monitoring | |||
68 | } | 68 | } |
69 | 69 | ||
70 | /// <summary> | 70 | /// <summary> |
71 | /// Average memory churn in bytes per millisecond. | ||
72 | /// </summary> | ||
73 | public static double LastMemoryChurn | ||
74 | { | ||
75 | get { if (m_samples.Count > 0) return m_samples.Last(); else return 0; } | ||
76 | } | ||
77 | |||
78 | /// <summary> | ||
71 | /// Maximum number of statistical samples. | 79 | /// Maximum number of statistical samples. |
72 | /// </summary> | 80 | /// </summary> |
73 | /// <remarks> | 81 | /// <remarks> |