aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-06-10 23:35:04 +0000
committerJustin Clarke Casey2008-06-10 23:35:04 +0000
commit3794f25ebd4dae48c4eabfa3d63a4d4c30a5aa30 (patch)
tree00f6d3cbf598e18d5bdef6bec01992d5f458e39a /OpenSim/Framework/Statistics/SimExtraStatsCollector.cs
parent* If a server has statistics, print these out to the log every hour to get so... (diff)
downloadopensim-SC-3794f25ebd4dae48c4eabfa3d63a4d4c30a5aa30.zip
opensim-SC-3794f25ebd4dae48c4eabfa3d63a4d4c30a5aa30.tar.gz
opensim-SC-3794f25ebd4dae48c4eabfa3d63a4d4c30a5aa30.tar.bz2
opensim-SC-3794f25ebd4dae48c4eabfa3d63a4d4c30a5aa30.tar.xz
* minor: Properly clear the pushed asset cache statistics where the clear-assets command is used on the region console
* stop waiting for garbage collection when GC total memory used is requested, in case the periodic request of this lags the sim
Diffstat (limited to 'OpenSim/Framework/Statistics/SimExtraStatsCollector.cs')
-rw-r--r--OpenSim/Framework/Statistics/SimExtraStatsCollector.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs b/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs
index 7a74e72..0a20f33 100644
--- a/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs
+++ b/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs
@@ -53,6 +53,11 @@ namespace OpenSim.Framework.Statistics
53 /// </summary> 53 /// </summary>
54 public long AbnormalClientThreadTerminations { get { return abnormalClientThreadTerminations; } } 54 public long AbnormalClientThreadTerminations { get { return abnormalClientThreadTerminations; } }
55 55
56 /// <summary>
57 /// These statistics are being collected by push rather than pull. Pull would be simpler, but I had the
58 /// notion of providing some flow statistics (which pull wouldn't give us). Though admittedly these
59 /// haven't yet been implemented... :)
60 /// </summary>
56 public long AssetsInCache { get { return assetsInCache; } } 61 public long AssetsInCache { get { return assetsInCache; } }
57 public long TexturesInCache { get { return texturesInCache; } } 62 public long TexturesInCache { get { return texturesInCache; } }
58 public long AssetCacheMemoryUsage { get { return assetCacheMemoryUsage; } } 63 public long AssetCacheMemoryUsage { get { return assetCacheMemoryUsage; } }
@@ -100,6 +105,17 @@ namespace OpenSim.Framework.Statistics
100 textureCacheMemoryUsage += image.Data.Length; 105 textureCacheMemoryUsage += image.Data.Length;
101 } 106 }
102 } 107 }
108
109 /// <summary>
110 /// Signal that the asset cache can be cleared.
111 /// </summary>
112 public void ClearAssetCacheStatistics()
113 {
114 assetsInCache = 0;
115 assetCacheMemoryUsage = 0;
116 texturesInCache = 0;
117 textureCacheMemoryUsage = 0;
118 }
103 119
104 public void AddBlockedMissingTextureRequest() 120 public void AddBlockedMissingTextureRequest()
105 { 121 {