diff options
Diffstat (limited to 'OpenSim/Region/Application/OpenSim.cs')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 28 |
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 | ||