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!
avinationmerge
Melanie 2012-07-11 23:33:13 +02:00
parent 59cd0a2419
commit ea91a36483
2 changed files with 12 additions and 6 deletions

View File

@ -2045,6 +2045,7 @@ namespace OpenSim.Region.Framework.Scenes
{ {
part.KeyframeMotion = KeyframeMotion.FromData(backup_group, part.KeyframeMotion.Serialize()); part.KeyframeMotion = KeyframeMotion.FromData(backup_group, part.KeyframeMotion.Serialize());
part.KeyframeMotion.UpdateSceneObject(this); part.KeyframeMotion.UpdateSceneObject(this);
part.SuppressFinalizerLogging = true;
} }
}); });

View File

@ -149,6 +149,8 @@ namespace OpenSim.Region.Framework.Scenes
#region Fields #region Fields
public bool SuppressFinalizerLogging = false;
public bool AllowedDrop; public bool AllowedDrop;
public bool DIE_AT_EDGE; public bool DIE_AT_EDGE;
@ -350,15 +352,18 @@ namespace OpenSim.Region.Framework.Scenes
#endregion Fields #endregion Fields
// ~SceneObjectPart() ~SceneObjectPart()
// { {
if (SuppressFinalizerLogging)
return;
// Console.WriteLine( // Console.WriteLine(
// "[SCENE OBJECT PART]: Destructor called for {0}, local id {1}, parent {2} {3}", // "[SCENE OBJECT PART]: Destructor called for {0}, local id {1}, parent {2} {3}",
// Name, LocalId, ParentGroup.Name, ParentGroup.LocalId); // Name, LocalId, ParentGroup.Name, ParentGroup.LocalId);
// m_log.DebugFormat( m_log.DebugFormat(
// "[SCENE OBJECT PART]: Destructor called for {0}, local id {1}, parent {2} {3}", "[SCENE OBJECT PART]: Destructor called for {0}, local id {1}, parent {2} {3}",
// Name, LocalId, ParentGroup.Name, ParentGroup.LocalId); Name, LocalId, ParentGroup.Name, ParentGroup.LocalId);
// } }
#region Constructors #region Constructors