diff options
Diffstat (limited to 'OpenSim/Framework/Statistics/SimExtraStatsCollector.cs')
-rw-r--r-- | OpenSim/Framework/Statistics/SimExtraStatsCollector.cs | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs b/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs index 2beb3a0..3716f9b 100644 --- a/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs +++ b/OpenSim/Framework/Statistics/SimExtraStatsCollector.cs | |||
@@ -43,12 +43,21 @@ namespace OpenSim.Framework.Statistics | |||
43 | private long assetCacheMemoryUsage; | 43 | private long assetCacheMemoryUsage; |
44 | private long textureCacheMemoryUsage; | 44 | private long textureCacheMemoryUsage; |
45 | 45 | ||
46 | private long inventoryServiceRetrievalFailures; | ||
47 | |||
46 | public long AssetsInCache { get { return assetsInCache; } } | 48 | public long AssetsInCache { get { return assetsInCache; } } |
47 | public long TexturesInCache { get { return texturesInCache; } } | 49 | public long TexturesInCache { get { return texturesInCache; } } |
48 | public long AssetCacheMemoryUsage { get { return assetCacheMemoryUsage; } } | 50 | public long AssetCacheMemoryUsage { get { return assetCacheMemoryUsage; } } |
49 | public long TextureCacheMemoryUsage { get { return textureCacheMemoryUsage; } } | 51 | public long TextureCacheMemoryUsage { get { return textureCacheMemoryUsage; } } |
50 | 52 | ||
51 | /// <summary> | 53 | /// <summary> |
54 | /// Number of known failures to retrieve avatar inventory from the inventory service. This does not | ||
55 | /// cover situations where the inventory service accepts the request but never returns any data, since | ||
56 | /// we do not yet timeout this situation. | ||
57 | /// </summary> | ||
58 | public long InventoryServiceRetrievalFailures { get { return inventoryServiceRetrievalFailures; } } | ||
59 | |||
60 | /// <summary> | ||
52 | /// Retain a dictionary of all packet queues stats reporters | 61 | /// Retain a dictionary of all packet queues stats reporters |
53 | /// </summary> | 62 | /// </summary> |
54 | private IDictionary<LLUUID, PacketQueueStatsCollector> packetQueueStatsCollectors | 63 | private IDictionary<LLUUID, PacketQueueStatsCollector> packetQueueStatsCollectors |
@@ -70,6 +79,11 @@ namespace OpenSim.Framework.Statistics | |||
70 | } | 79 | } |
71 | } | 80 | } |
72 | 81 | ||
82 | public void AddInventoryServiceRetrievalFailure() | ||
83 | { | ||
84 | inventoryServiceRetrievalFailures++; | ||
85 | } | ||
86 | |||
73 | /// <summary> | 87 | /// <summary> |
74 | /// Register as a packet queue stats provider | 88 | /// Register as a packet queue stats provider |
75 | /// </summary> | 89 | /// </summary> |
@@ -110,7 +124,15 @@ namespace OpenSim.Framework.Statistics | |||
110 | Texture cache contains {2,6} textures using {3,10:0.000}K" + Environment.NewLine, | 124 | Texture cache contains {2,6} textures using {3,10:0.000}K" + Environment.NewLine, |
111 | AssetsInCache, AssetCacheMemoryUsage / 1024.0, | 125 | AssetsInCache, AssetCacheMemoryUsage / 1024.0, |
112 | TexturesInCache, TextureCacheMemoryUsage / 1024.0)); | 126 | TexturesInCache, TextureCacheMemoryUsage / 1024.0)); |
113 | 127 | ||
128 | sb.Append(Environment.NewLine); | ||
129 | sb.Append("INVENTORY STATISTICS"); | ||
130 | sb.Append(Environment.NewLine); | ||
131 | sb.Append( | ||
132 | string.Format( | ||
133 | "Initial inventory caching failures: {0}" + Environment.NewLine, | ||
134 | InventoryServiceRetrievalFailures)); | ||
135 | |||
114 | sb.Append(Environment.NewLine); | 136 | sb.Append(Environment.NewLine); |
115 | sb.Append("PACKET QUEUE STATISTICS"); | 137 | sb.Append("PACKET QUEUE STATISTICS"); |
116 | sb.Append(Environment.NewLine); | 138 | sb.Append(Environment.NewLine); |