aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-10-29 23:03:11 +0100
committerJustin Clark-Casey (justincc)2010-10-29 23:03:11 +0100
commit25e19ba7e9ff4a080728178babe4fb1ef33b8d5d (patch)
treef9ce84359dc9a01fc7fe18cb47725eba094fe4d9 /OpenSim/Region/Framework/Scenes
parentfor now, comment out some older or redundant log debug lines to make diagnost... (diff)
downloadopensim-SC_OLD-25e19ba7e9ff4a080728178babe4fb1ef33b8d5d.zip
opensim-SC_OLD-25e19ba7e9ff4a080728178babe4fb1ef33b8d5d.tar.gz
opensim-SC_OLD-25e19ba7e9ff4a080728178babe4fb1ef33b8d5d.tar.bz2
opensim-SC_OLD-25e19ba7e9ff4a080728178babe4fb1ef33b8d5d.tar.xz
add timing report to CompleteScenePresence for diagnostic purposes
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 13d9964..03aa8cf 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -1085,7 +1085,11 @@ namespace OpenSim.Region.Framework.Scenes
1085 /// </summary> 1085 /// </summary>
1086 public void CompleteMovement(IClientAPI client) 1086 public void CompleteMovement(IClientAPI client)
1087 { 1087 {
1088 //m_log.Debug("[SCENE PRESENCE]: CompleteMovement"); 1088 DateTime startTime = DateTime.Now;
1089
1090 m_log.DebugFormat(
1091 "[SCENE PRESENCE]: Completing movement of {0} into region {1}",
1092 client.Name, Scene.RegionInfo.RegionName);
1089 1093
1090 Vector3 look = Velocity; 1094 Vector3 look = Velocity;
1091 if ((look.X == 0) && (look.Y == 0) && (look.Z == 0)) 1095 if ((look.X == 0) && (look.Y == 0) && (look.Z == 0))
@@ -1134,6 +1138,9 @@ namespace OpenSim.Region.Framework.Scenes
1134 friendsModule.SendFriendsOnlineIfNeeded(ControllingClient); 1138 friendsModule.SendFriendsOnlineIfNeeded(ControllingClient);
1135 } 1139 }
1136 1140
1141 m_log.DebugFormat(
1142 "[SCENE PRESENCE]: Completing movement of {0} into region {1} took {2}ms",
1143 client.Name, Scene.RegionInfo.RegionName, (DateTime.Now - startTime).Milliseconds);
1137 } 1144 }
1138 1145
1139 /// <summary> 1146 /// <summary>