diff options
author | Diva Canto | 2011-02-06 19:39:29 -0800 |
---|---|---|
committer | Diva Canto | 2011-02-06 19:39:29 -0800 |
commit | 98ea78fc77b3dd6da185d71dfab402a0ef8780d6 (patch) | |
tree | f73f170ad6f10e1e8d79aa4572fac11780d6a6cb /OpenSim/Region/Application | |
parent | Better output for show neighbours (diff) | |
download | opensim-SC_OLD-98ea78fc77b3dd6da185d71dfab402a0ef8780d6.zip opensim-SC_OLD-98ea78fc77b3dd6da185d71dfab402a0ef8780d6.tar.gz opensim-SC_OLD-98ea78fc77b3dd6da185d71dfab402a0ef8780d6.tar.bz2 opensim-SC_OLD-98ea78fc77b3dd6da185d71dfab402a0ef8780d6.tar.xz |
New command: show pending-objects
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index bbcc588..bd1aa46 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs | |||
@@ -302,6 +302,10 @@ namespace OpenSim | |||
302 | "show http-handlers", | 302 | "show http-handlers", |
303 | "Show all registered http handlers", HandleShow); | 303 | "Show all registered http handlers", HandleShow); |
304 | 304 | ||
305 | m_console.Commands.AddCommand("region", false, "show pending-objects", | ||
306 | "show pending-objects", | ||
307 | "Show # of objects on the pending queues of all scene viewers", HandleShow); | ||
308 | |||
305 | m_console.Commands.AddCommand("region", false, "show modules", | 309 | m_console.Commands.AddCommand("region", false, "show modules", |
306 | "show modules", | 310 | "show modules", |
307 | "Show module data", HandleShow); | 311 | "Show module data", HandleShow); |
@@ -993,6 +997,24 @@ namespace OpenSim | |||
993 | MainConsole.Instance.Output(handlers.ToString()); | 997 | MainConsole.Instance.Output(handlers.ToString()); |
994 | break; | 998 | break; |
995 | 999 | ||
1000 | case "pending-objects": | ||
1001 | System.Text.StringBuilder pending = new System.Text.StringBuilder("Pending objects:\n"); | ||
1002 | m_sceneManager.ForEachScene( | ||
1003 | delegate(Scene scene) | ||
1004 | { | ||
1005 | scene.ForEachScenePresence( | ||
1006 | delegate(ScenePresence sp) | ||
1007 | { | ||
1008 | pending.AppendFormat("{0}: {1} {2} pending\n", | ||
1009 | scene.RegionInfo.RegionName, sp.Name, sp.SceneViewer.GetPendingObjectsCount()); | ||
1010 | } | ||
1011 | ); | ||
1012 | } | ||
1013 | ); | ||
1014 | |||
1015 | MainConsole.Instance.Output(pending.ToString()); | ||
1016 | break; | ||
1017 | |||
996 | case "modules": | 1018 | case "modules": |
997 | MainConsole.Instance.Output("The currently loaded shared modules are:"); | 1019 | MainConsole.Instance.Output("The currently loaded shared modules are:"); |
998 | foreach (IRegionModule module in m_moduleLoader.GetLoadedSharedModules) | 1020 | foreach (IRegionModule module in m_moduleLoader.GetLoadedSharedModules) |