aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Statistics
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-06-10 23:19:38 +0000
committerJustin Clarke Casey2008-06-10 23:19:38 +0000
commit686f16cedda4daac1663f30b17e65bde7fc4af2b (patch)
tree84d007bdf777fe5a7569b32198e3d18347178c1e /OpenSim/Framework/Statistics
parentI'm going to need the Version property to manage (diff)
downloadopensim-SC-686f16cedda4daac1663f30b17e65bde7fc4af2b.zip
opensim-SC-686f16cedda4daac1663f30b17e65bde7fc4af2b.tar.gz
opensim-SC-686f16cedda4daac1663f30b17e65bde7fc4af2b.tar.bz2
opensim-SC-686f16cedda4daac1663f30b17e65bde7fc4af2b.tar.xz
* If a server has statistics, print these out to the log every hour to get some idea of how these evolve
* When returning GC.GetTotalMemory(), force collection first in order to get more accurate figures
Diffstat (limited to 'OpenSim/Framework/Statistics')
-rw-r--r--OpenSim/Framework/Statistics/BaseStatsCollector.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Framework/Statistics/BaseStatsCollector.cs b/OpenSim/Framework/Statistics/BaseStatsCollector.cs
index c888f4c..225c551 100644
--- a/OpenSim/Framework/Statistics/BaseStatsCollector.cs
+++ b/OpenSim/Framework/Statistics/BaseStatsCollector.cs
@@ -43,7 +43,7 @@ namespace OpenSim.Framework.Statistics
43 sb.Append( 43 sb.Append(
44 string.Format( 44 string.Format(
45 "Allocated to OpenSim : {0} MB" + Environment.NewLine, 45 "Allocated to OpenSim : {0} MB" + Environment.NewLine,
46 Math.Round(GC.GetTotalMemory(false) / 1024.0 / 1024.0))); 46 Math.Round(GC.GetTotalMemory(true) / 1024.0 / 1024.0)));
47 47
48 return sb.ToString(); 48 return sb.ToString();
49 } 49 }