From ec8d21c434a39f46518ee9cf9f5539d1790eacc0 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Tue, 4 Nov 2014 00:55:48 +0000 Subject: Label all threadpool calls being made in core OpenSimulator. This is to add problem diagnosis. "show threadpool calls" now also returns named (labelled), anonymous (unlabelled) and total call stats. --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs') diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 9481f71..1d234e2 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -1235,7 +1235,8 @@ namespace OpenSim.Region.Framework.Scenes string.Format("Rez attachments for {0} in {1}", Name, Scene.Name), null); else - Util.FireAndForget(o => Scene.AttachmentsModule.RezAttachments(this)); + Util.FireAndForget( + o => Scene.AttachmentsModule.RezAttachments(this), null, "ScenePresence.RezAttachmentsOnLogin"); } } else @@ -1338,7 +1339,7 @@ namespace OpenSim.Region.Framework.Scenes UseFakeGroupTitle = false; SendAvatarDataToAllClients(false); - }); + }, null, "Scenepresence.ForceViewersUpdateName"); } public int GetStateSource() @@ -3645,7 +3646,8 @@ namespace OpenSim.Region.Framework.Scenes agentpos.CopyFrom(cadu, ControllingClient.SessionId); // Let's get this out of the update loop - Util.FireAndForget(delegate { m_scene.SendOutChildAgentUpdates(agentpos, this); }); + Util.FireAndForget( + o => m_scene.SendOutChildAgentUpdates(agentpos, this), null, "ScenePresence.SendOutChildAgentUpdates"); } } @@ -4515,7 +4517,7 @@ namespace OpenSim.Region.Framework.Scenes } } } - }); + }, null, "ScenePresence.SendScriptEventToAttachments"); } /// -- cgit v1.1