aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
diff options
context:
space:
mode:
authorMelanie2012-07-11 23:33:13 +0200
committerMelanie2012-07-11 23:33:13 +0200
commitea91a36483f3eba90e16b664715d152f9eca2980 (patch)
tree9f500a1ec0ff93578ee2ce8f8b56edbd7c8241a8 /OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
parentChange order of operations on backup to ensure keyframe motions are backed (diff)
downloadopensim-SC-ea91a36483f3eba90e16b664715d152f9eca2980.zip
opensim-SC-ea91a36483f3eba90e16b664715d152f9eca2980.tar.gz
opensim-SC-ea91a36483f3eba90e16b664715d152f9eca2980.tar.bz2
opensim-SC-ea91a36483f3eba90e16b664715d152f9eca2980.tar.xz
Add instrumentation to log finalizer being called. Suppressed for backup
interim copies to avoid spammage. Not for release to the grid, must be reverted first!
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs17
1 files changed, 11 insertions, 6 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 16a8588..4d43943 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -149,6 +149,8 @@ namespace OpenSim.Region.Framework.Scenes
149 149
150 #region Fields 150 #region Fields
151 151
152 public bool SuppressFinalizerLogging = false;
153
152 public bool AllowedDrop; 154 public bool AllowedDrop;
153 155
154 public bool DIE_AT_EDGE; 156 public bool DIE_AT_EDGE;
@@ -350,15 +352,18 @@ namespace OpenSim.Region.Framework.Scenes
350 352
351 #endregion Fields 353 #endregion Fields
352 354
353// ~SceneObjectPart() 355 ~SceneObjectPart()
354// { 356 {
357 if (SuppressFinalizerLogging)
358 return;
359
355// Console.WriteLine( 360// Console.WriteLine(
356// "[SCENE OBJECT PART]: Destructor called for {0}, local id {1}, parent {2} {3}", 361// "[SCENE OBJECT PART]: Destructor called for {0}, local id {1}, parent {2} {3}",
357// Name, LocalId, ParentGroup.Name, ParentGroup.LocalId); 362// Name, LocalId, ParentGroup.Name, ParentGroup.LocalId);
358// m_log.DebugFormat( 363 m_log.DebugFormat(
359// "[SCENE OBJECT PART]: Destructor called for {0}, local id {1}, parent {2} {3}", 364 "[SCENE OBJECT PART]: Destructor called for {0}, local id {1}, parent {2} {3}",
360// Name, LocalId, ParentGroup.Name, ParentGroup.LocalId); 365 Name, LocalId, ParentGroup.Name, ParentGroup.LocalId);
361// } 366 }
362 367
363 #region Constructors 368 #region Constructors
364 369