aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-05-14 21:53:40 +0000
committerJustin Clarke Casey2008-05-14 21:53:40 +0000
commit0f501629618fe1655b7ba653802056b5c32dbae6 (patch)
tree8a7f2808a27f97a60d1901263155906256e6f46a /OpenSim/Region/Application
parent* Refactor: Renaming non viewer statistics classes from Reporters to Collecto... (diff)
downloadopensim-SC-0f501629618fe1655b7ba653802056b5c32dbae6.zip
opensim-SC-0f501629618fe1655b7ba653802056b5c32dbae6.tar.gz
opensim-SC-0f501629618fe1655b7ba653802056b5c32dbae6.tar.bz2
opensim-SC-0f501629618fe1655b7ba653802056b5c32dbae6.tar.xz
* Refactor additional stats collection common code into base opensim server
* If extra stats not sent to the viewer are available on an opensim server, they are now uniformly accessible using the 'show stats' command
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs2
-rw-r--r--OpenSim/Region/Application/OpenSimMainConsole.cs15
2 files changed, 2 insertions, 15 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index bae7819..e7386ff 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -391,7 +391,7 @@ namespace OpenSim
391 { 391 {
392 printAvailableVersionInformation(); 392 printAvailableVersionInformation();
393 393
394 StatsManager.StartCollectingSimExtraStats(); 394 m_stats = StatsManager.StartCollectingSimExtraStats();
395 395
396 // Do baseclass startup sequence: OpenSim.Region.ClientStack.RegionApplicationBase.StartUp 396 // Do baseclass startup sequence: OpenSim.Region.ClientStack.RegionApplicationBase.StartUp
397 // TerrainManager, StorageManager, HTTP Server 397 // TerrainManager, StorageManager, HTTP Server
diff --git a/OpenSim/Region/Application/OpenSimMainConsole.cs b/OpenSim/Region/Application/OpenSimMainConsole.cs
index 39f2b7b..2381f57 100644
--- a/OpenSim/Region/Application/OpenSimMainConsole.cs
+++ b/OpenSim/Region/Application/OpenSimMainConsole.cs
@@ -252,8 +252,7 @@ namespace OpenSim
252 m_console.Notice("set-time [x] - set the current scene time phase"); 252 m_console.Notice("set-time [x] - set the current scene time phase");
253 m_console.Notice("show assets - show state of asset cache."); 253 m_console.Notice("show assets - show state of asset cache.");
254 m_console.Notice("show users - show info about connected users."); 254 m_console.Notice("show users - show info about connected users.");
255 m_console.Notice("show modules - shows info about loaded modules."); 255 m_console.Notice("show modules - shows info about loaded modules.");
256 m_console.Notice("show stats - statistical information for this server");
257 m_console.Notice("show version - show the running build version."); 256 m_console.Notice("show version - show the running build version.");
258 m_console.Notice("threads - list threads"); 257 m_console.Notice("threads - list threads");
259 m_console.Notice("config set section field value - set a config value"); 258 m_console.Notice("config set section field value - set a config value");
@@ -595,18 +594,6 @@ namespace OpenSim
595 scene.RegionInfo.RegionLocY); 594 scene.RegionInfo.RegionLocY);
596 }); 595 });
597 break; 596 break;
598
599 case "stats":
600 if (StatsManager.SimExtraStats != null)
601 {
602 m_console.Notice(
603 "STATS", Environment.NewLine + StatsManager.SimExtraStats.Report());
604 }
605 else
606 {
607 m_console.Notice("Extra sim statistics collection has not been enabled");
608 }
609 break;
610 597
611 case "version": 598 case "version":
612 if (!string.IsNullOrEmpty(buildVersion)) 599 if (!string.IsNullOrEmpty(buildVersion))