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
meow-7.2.2
Richard Linden 2012-01-23 17:47:23 -08:00
parent fedbe2fd97
commit 77a83dddf5
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}