* 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
This commit is contained in:
Justin Clarke Casey
2008-06-10 23:35:04 +00:00
parent 686f16cedd
commit 3794f25ebd
3 changed files with 21 additions and 1 deletions

View File

@@ -53,6 +53,11 @@ namespace OpenSim.Framework.Statistics
/// </summary>
public long AbnormalClientThreadTerminations { get { return abnormalClientThreadTerminations; } }
/// <summary>
/// These statistics are being collected by push rather than pull. Pull would be simpler, but I had the
/// notion of providing some flow statistics (which pull wouldn't give us). Though admittedly these
/// haven't yet been implemented... :)
/// </summary>
public long AssetsInCache { get { return assetsInCache; } }
public long TexturesInCache { get { return texturesInCache; } }
public long AssetCacheMemoryUsage { get { return assetCacheMemoryUsage; } }
@@ -100,6 +105,17 @@ namespace OpenSim.Framework.Statistics
textureCacheMemoryUsage += image.Data.Length;
}
}
/// <summary>
/// Signal that the asset cache can be cleared.
/// </summary>
public void ClearAssetCacheStatistics()
{
assetsInCache = 0;
assetCacheMemoryUsage = 0;
texturesInCache = 0;
textureCacheMemoryUsage = 0;
}
public void AddBlockedMissingTextureRequest()
{