aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Monitoring/StatsManager.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-10-23 02:44:15 +0100
committerJustin Clark-Casey (justincc)2012-10-23 02:44:15 +0100
commit319ebaca06db3d4a38beff74725d321b7c836157 (patch)
treea75a30d49042353bc963c5c7ccbf11b3e7b7020d /OpenSim/Framework/Monitoring/StatsManager.cs
parentAdd object count stats for new IncomingPacket and UDPPacketBuffer pools if th... (diff)
downloadopensim-SC-319ebaca06db3d4a38beff74725d321b7c836157.zip
opensim-SC-319ebaca06db3d4a38beff74725d321b7c836157.tar.gz
opensim-SC-319ebaca06db3d4a38beff74725d321b7c836157.tar.bz2
opensim-SC-319ebaca06db3d4a38beff74725d321b7c836157.tar.xz
Make it possible to turn the base UDP object packet pools on and off whilst running via the "debug lludp pool <on|off>" console command. For debug purposes.
This does not currently apply to the higher LLUDP packetpool.
Diffstat (limited to 'OpenSim/Framework/Monitoring/StatsManager.cs')
-rw-r--r--OpenSim/Framework/Monitoring/StatsManager.cs14
1 files changed, 1 insertions, 13 deletions
diff --git a/OpenSim/Framework/Monitoring/StatsManager.cs b/OpenSim/Framework/Monitoring/StatsManager.cs
index 116b2c0..4844336 100644
--- a/OpenSim/Framework/Monitoring/StatsManager.cs
+++ b/OpenSim/Framework/Monitoring/StatsManager.cs
@@ -207,7 +207,7 @@ namespace OpenSim.Framework.Monitoring
207 return false; 207 return false;
208 208
209 newContainer = new Dictionary<string, Stat>(container); 209 newContainer = new Dictionary<string, Stat>(container);
210 newContainer.Remove(stat.UniqueName); 210 newContainer.Remove(stat.ShortName);
211 211
212 newCategory = new Dictionary<string, Dictionary<string, Stat>>(category); 212 newCategory = new Dictionary<string, Dictionary<string, Stat>>(category);
213 newCategory.Remove(stat.Container); 213 newCategory.Remove(stat.Container);
@@ -279,11 +279,6 @@ namespace OpenSim.Framework.Monitoring
279 public class Stat 279 public class Stat
280 { 280 {
281 /// <summary> 281 /// <summary>
282 /// Unique stat name used for indexing. Each ShortName in a Category must be unique.
283 /// </summary>
284 public string UniqueName { get; private set; }
285
286 /// <summary>
287 /// Category of this stat (e.g. cache, scene, etc). 282 /// Category of this stat (e.g. cache, scene, etc).
288 /// </summary> 283 /// </summary>
289 public string Category { get; private set; } 284 public string Category { get; private set; }
@@ -376,13 +371,6 @@ namespace OpenSim.Framework.Monitoring
376 PullAction = pullAction; 371 PullAction = pullAction;
377 372
378 Verbosity = verbosity; 373 Verbosity = verbosity;
379
380 UniqueName = GenUniqueName(Container, Category, ShortName);
381 }
382
383 public static string GenUniqueName(string container, string category, string shortName)
384 {
385 return string.Format("{0}+{1}+{2}", container, category, shortName);
386 } 374 }
387 375
388 public virtual string ToConsoleString() 376 public virtual string ToConsoleString()