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 templatesmeow-7.2.2
parent
fedbe2fd97
commit
77a83dddf5
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue