aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-07-11 16:24:52 +0000
committerJustin Clarke Casey2008-07-11 16:24:52 +0000
commitf7d9b0bab710693417fa653e3dcf26374c93d100 (patch)
tree0958369b6bcff431a630fbf84cd3f4320db9298e /OpenSim/Region
parent* Put an info entry in the log if permissions are being bypassed (diff)
downloadopensim-SC_OLD-f7d9b0bab710693417fa653e3dcf26374c93d100.zip
opensim-SC_OLD-f7d9b0bab710693417fa653e3dcf26374c93d100.tar.gz
opensim-SC_OLD-f7d9b0bab710693417fa653e3dcf26374c93d100.tar.bz2
opensim-SC_OLD-f7d9b0bab710693417fa653e3dcf26374c93d100.tar.xz
* Move thread tracking code to base opensim server so that it's available for all servers (UGAIM as well as Region)
* This will work as long as those servers are actually registering any threads they use (does not include stuff plucked from the thread pool) * command is now "show threads" rather than threads
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs28
1 files changed, 0 insertions, 28 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 4afe37b..0616812 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -295,7 +295,6 @@ namespace OpenSim
295 m_console.Notice("show users - show info about connected users."); 295 m_console.Notice("show users - show info about connected users.");
296 m_console.Notice("show modules - shows info about loaded modules."); 296 m_console.Notice("show modules - shows info about loaded modules.");
297 m_console.Notice("show regions - show running region information."); 297 m_console.Notice("show regions - show running region information.");
298 m_console.Notice("threads - list threads");
299 m_console.Notice("config set section field value - set a config value"); 298 m_console.Notice("config set section field value - set a config value");
300 m_console.Notice("config get section field - get a config value"); 299 m_console.Notice("config get section field - get a config value");
301 m_console.Notice("config save - save OpenSim.ini"); 300 m_console.Notice("config save - save OpenSim.ini");
@@ -303,33 +302,6 @@ namespace OpenSim
303 ShowPluginCommandsHelp(CombineParams(cmdparams, 0), m_console); 302 ShowPluginCommandsHelp(CombineParams(cmdparams, 0), m_console);
304 break; 303 break;
305 304
306 case "threads":
307// m_console.Notice("THREAD", Process.GetCurrentProcess().Threads.Count + " threads running:");
308// int _tc = 0;
309
310// foreach (ProcessThread pt in Process.GetCurrentProcess().Threads)
311// {
312// _tc++;
313// m_console.Notice("THREAD", _tc + ": ID: " + pt.Id + ", Started: " + pt.StartTime.ToString() + ", CPU time: " + pt.TotalProcessorTime + ", Pri: " + pt.BasePriority.ToString() + ", State: " + pt.ThreadState.ToString());
314// }
315
316 List<Thread> threads = ThreadTracker.GetThreads();
317 if (threads == null)
318 {
319 m_console.Notice("THREAD", "Thread tracking is only enabled in DEBUG mode.");
320 }
321 else
322 {
323 int _tc = 0;
324 m_console.Notice("THREAD", threads.Count + " threads are being tracked:");
325 foreach (Thread t in threads)
326 {
327 _tc++;
328 m_console.Notice("THREAD", _tc + ": ID: " + t.ManagedThreadId.ToString() + ", Name: " + t.Name + ", Alive: " + t.IsAlive.ToString() + ", Pri: " + t.Priority.ToString() + ", State: " + t.ThreadState.ToString());
329 }
330 }
331
332 break;
333 case "save-xml": 305 case "save-xml":
334 m_log.Error("[CONSOLE]: PLEASE NOTE, save-xml is DEPRECATED and may be REMOVED soon. If you are using this and there is some reason you can't use save-xml2, please file a mantis detailing the reason."); 306 m_log.Error("[CONSOLE]: PLEASE NOTE, save-xml is DEPRECATED and may be REMOVED soon. If you are using this and there is some reason you can't use save-xml2, please file a mantis detailing the reason.");
335 307