aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Statistics/StatsManager.cs
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/Framework/Statistics/StatsManager.cs
parent* Refactor: Renaming non viewer statistics classes from Reporters to Collecto... (diff)
downloadopensim-SC_OLD-0f501629618fe1655b7ba653802056b5c32dbae6.zip
opensim-SC_OLD-0f501629618fe1655b7ba653802056b5c32dbae6.tar.gz
opensim-SC_OLD-0f501629618fe1655b7ba653802056b5c32dbae6.tar.bz2
opensim-SC_OLD-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/Framework/Statistics/StatsManager.cs')
-rw-r--r--OpenSim/Framework/Statistics/StatsManager.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Framework/Statistics/StatsManager.cs b/OpenSim/Framework/Statistics/StatsManager.cs
index 10251a5..3c97dde 100644
--- a/OpenSim/Framework/Statistics/StatsManager.cs
+++ b/OpenSim/Framework/Statistics/StatsManager.cs
@@ -46,27 +46,33 @@ namespace OpenSim.Framework.Statistics
46 /// Start collecting statistics related to assets. 46 /// Start collecting statistics related to assets.
47 /// Should only be called once. 47 /// Should only be called once.
48 /// </summary> 48 /// </summary>
49 public static void StartCollectingAssetStats() 49 public static AssetStatsCollector StartCollectingAssetStats()
50 { 50 {
51 assetStats = new AssetStatsCollector(); 51 assetStats = new AssetStatsCollector();
52
53 return assetStats;
52 } 54 }
53 55
54 /// <summary> 56 /// <summary>
55 /// Start collecting statistics related to users. 57 /// Start collecting statistics related to users.
56 /// Should only be called once. 58 /// Should only be called once.
57 /// </summary> 59 /// </summary>
58 public static void StartCollectingUserStats() 60 public static UserStatsCollector StartCollectingUserStats()
59 { 61 {
60 userStats = new UserStatsCollector(); 62 userStats = new UserStatsCollector();
63
64 return userStats;
61 } 65 }
62 66
63 /// <summary> 67 /// <summary>
64 /// Start collecting extra sim statistics apart from those collected for the client. 68 /// Start collecting extra sim statistics apart from those collected for the client.
65 /// Should only be called once. 69 /// Should only be called once.
66 /// </summary> 70 /// </summary>
67 public static void StartCollectingSimExtraStats() 71 public static SimExtraStatsCollector StartCollectingSimExtraStats()
68 { 72 {
69 simExtraStats = new SimExtraStatsCollector(); 73 simExtraStats = new SimExtraStatsCollector();
74
75 return simExtraStats;
70 } 76 }
71 } 77 }
72} 78}