summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorRichard Linden <none@none>2012-01-23 17:47:23 -0800
committerRichard Linden <none@none>2012-01-23 17:47:23 -0800
commit77a83dddf54ae5271d2cb3cca4f6102d44a57bcd (patch)
treebd9788581bf3f4b447692d6b6e2aac9a0db76ba6 /indra
parentfedbe2fd9792ebb69fc680586cb6488ebc4f1423 (diff)
EXP-1837 FIX parsing notifications.xml during startup can take > 40 seconds (in non-release builds)
added logging to track length of time spent reading notifications templates
Diffstat (limited to 'indra')
-rw-r--r--indra/llui/llnotifications.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llui/llnotifications.cpp b/indra/llui/llnotifications.cpp
index d232e27ef2..f2c852aba4 100644
--- a/indra/llui/llnotifications.cpp
+++ b/indra/llui/llnotifications.cpp
@@ -1412,6 +1412,7 @@ void addPathIfExists(const std::string& new_path, std::vector<std::string>& path
bool LLNotifications::loadTemplates()
{
+ llinfos << "Reading notifications template" << llcont;
std::vector<std::string> search_paths;
std::string skin_relative_path = gDirUtilp->getDirDelimiter() + LLUI::getSkinPath() + gDirUtilp->getDirDelimiter() + "notifications.xml";
@@ -1484,6 +1485,8 @@ bool LLNotifications::loadTemplates()
mTemplates[notification.name] = LLNotificationTemplatePtr(new LLNotificationTemplate(notification));
}
+ llinfos << "...done" << llendl;
+
return true;
}