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
parent
59cd0a2419
commit
ea91a36483
|
@ -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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue