mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
* A hacky Top Scripts display. It isn't accurate as far as ms accounting, however you can use it to help find out what scripts are causing your simulator to cry.
* Access it from the Estate tools/Debug tab.
This commit is contained in:
@@ -174,6 +174,9 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
public event AvatarKillData OnAvatarKilled;
|
||||
|
||||
public delegate void ScriptTimerEvent(uint localID, double timerinterval);
|
||||
|
||||
public event ScriptTimerEvent OnScriptTimerEvent;
|
||||
|
||||
|
||||
public delegate void ObjectBeingRemovedFromScene(SceneObjectGroup obj);
|
||||
@@ -332,6 +335,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
private RequestParcelPrimCountUpdate handlerRequestParcelPrimCountUpdate = null;
|
||||
private ParcelPrimCountTainted handlerParcelPrimCountTainted = null;
|
||||
private ObjectBeingRemovedFromScene handlerObjectBeingRemovedFromScene = null;
|
||||
private ScriptTimerEvent handlerScriptTimerEvent = null;
|
||||
|
||||
public void TriggerOnScriptChangedEvent(uint localID, uint change)
|
||||
{
|
||||
@@ -755,5 +759,16 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
}
|
||||
}
|
||||
// this lets us keep track of nasty script events like timer, etc.
|
||||
public void TriggerTimerEvent(uint objLocalID, double Interval)
|
||||
{
|
||||
handlerScriptTimerEvent = OnScriptTimerEvent;
|
||||
if (handlerScriptTimerEvent != null)
|
||||
{
|
||||
handlerScriptTimerEvent(objLocalID, Interval);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user