summaryrefslogtreecommitdiff
path: root/indra/llui/lluiusage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/lluiusage.cpp')
-rw-r--r--indra/llui/lluiusage.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/llui/lluiusage.cpp b/indra/llui/lluiusage.cpp
index 50eeccd214..99de4ff78a 100644
--- a/indra/llui/lluiusage.cpp
+++ b/indra/llui/lluiusage.cpp
@@ -47,11 +47,19 @@ std::string LLUIUsage::sanitized(const std::string& s)
void LLUIUsage::logFloater(const std::string& floater)
{
mFloaterCounts[sanitized(floater)]++;
+ LL_DEBUGS("UIUsage") << "floater " << floater << LL_ENDL;
}
void LLUIUsage::logCommand(const std::string& command)
{
mCommandCounts[sanitized(command)]++;
+ LL_DEBUGS("UIUsage") << "command " << command << LL_ENDL;
+}
+
+void LLUIUsage::logWidget(const std::string& w)
+{
+ mWidgetCounts[sanitized(w)]++;
+ LL_DEBUGS("UIUsage") << "widget " << w << LL_ENDL;
}
LLSD LLUIUsage::asLLSD() const
@@ -65,6 +73,10 @@ LLSD LLUIUsage::asLLSD() const
{
result["commands"][it.first] = LLSD::Integer(it.second);
}
+ for (auto const& it : mWidgetCounts)
+ {
+ result["widgets"][it.first] = LLSD::Integer(it.second);
+ }
return result;
}