diff options
Diffstat (limited to 'OpenSim/Framework/Monitoring/StatsManager.cs')
-rw-r--r-- | OpenSim/Framework/Monitoring/StatsManager.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Framework/Monitoring/StatsManager.cs b/OpenSim/Framework/Monitoring/StatsManager.cs index 3aee984..af9f5ba 100644 --- a/OpenSim/Framework/Monitoring/StatsManager.cs +++ b/OpenSim/Framework/Monitoring/StatsManager.cs | |||
@@ -68,12 +68,13 @@ namespace OpenSim.Framework.Monitoring | |||
68 | "General", | 68 | "General", |
69 | false, | 69 | false, |
70 | "show stats", | 70 | "show stats", |
71 | "show stats [list|all|<category>]", | 71 | "show stats [list|all|<category>[.<container>]", |
72 | "Show statistical information for this server", | 72 | "Show statistical information for this server", |
73 | "If no final argument is specified then legacy statistics information is currently shown.\n" | 73 | "If no final argument is specified then legacy statistics information is currently shown.\n" |
74 | + "If list is specified then statistic categories are shown.\n" | 74 | + "If list is specified then statistic categories are shown.\n" |
75 | + "If all is specified then all registered statistics are shown.\n" | 75 | + "If all is specified then all registered statistics are shown.\n" |
76 | + "If a category name is specified then only statistics from that category are shown.\n" | 76 | + "If a category name is specified then only statistics from that category are shown.\n" |
77 | + "If a category container is also specified then only statistics from that category in that container are shown.\n" | ||
77 | + "THIS STATS FACILITY IS EXPERIMENTAL AND DOES NOT YET CONTAIN ALL STATS", | 78 | + "THIS STATS FACILITY IS EXPERIMENTAL AND DOES NOT YET CONTAIN ALL STATS", |
78 | HandleShowStatsCommand); | 79 | HandleShowStatsCommand); |
79 | } | 80 | } |
@@ -84,8 +85,11 @@ namespace OpenSim.Framework.Monitoring | |||
84 | 85 | ||
85 | if (cmd.Length > 2) | 86 | if (cmd.Length > 2) |
86 | { | 87 | { |
87 | var categoryName = cmd[2]; | 88 | string name = cmd[2]; |
88 | var containerName = cmd.Length > 3 ? cmd[3] : String.Empty; | 89 | string[] components = name.Split('.'); |
90 | |||
91 | string categoryName = components[0]; | ||
92 | string containerName = components.Length > 1 ? components[1] : null; | ||
89 | 93 | ||
90 | if (categoryName == AllSubCommand) | 94 | if (categoryName == AllSubCommand) |
91 | { | 95 | { |
@@ -107,7 +111,9 @@ namespace OpenSim.Framework.Monitoring | |||
107 | else | 111 | else |
108 | { | 112 | { |
109 | if (String.IsNullOrEmpty(containerName)) | 113 | if (String.IsNullOrEmpty(containerName)) |
114 | { | ||
110 | OutputCategoryStatsToConsole(con, category); | 115 | OutputCategoryStatsToConsole(con, category); |
116 | } | ||
111 | else | 117 | else |
112 | { | 118 | { |
113 | SortedDictionary<string, Stat> container; | 119 | SortedDictionary<string, Stat> container; |