Merge.
This commit is contained in:
@@ -2501,7 +2501,7 @@ LLView* LLFloater::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *f
|
||||
return floaterp;
|
||||
}
|
||||
|
||||
LLFastTimer::DeclareTimer POST_BUILD("Floater Post Build");
|
||||
LLTrace::BlockTimerStatHandle POST_BUILD("Floater Post Build");
|
||||
void LLFloater::initFloaterXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory, BOOL open) /* Flawfinder: ignore */
|
||||
{
|
||||
std::string name(getName());
|
||||
@@ -2573,7 +2573,7 @@ void LLFloater::initFloaterXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactor
|
||||
|
||||
BOOL result;
|
||||
{
|
||||
LLFastTimer ft(POST_BUILD);
|
||||
LL_RECORD_BLOCK_TIME(POST_BUILD);
|
||||
|
||||
result = postBuild();
|
||||
}
|
||||
|
||||
@@ -353,13 +353,13 @@ LLColor3 LLKeywords::readColor( const std::string& s )
|
||||
return LLColor3( r, g, b );
|
||||
}
|
||||
|
||||
LLFastTimer::DeclareTimer FTM_SYNTAX_COLORING("Syntax Coloring");
|
||||
LLTrace::BlockTimerStatHandle FTM_SYNTAX_COLORING("Syntax Coloring");
|
||||
|
||||
// Walk through a string, applying the rules specified by the keyword token list and
|
||||
// create a list of color segments.
|
||||
void LLKeywords::findSegments(std::vector<LLTextSegmentPtr>* seg_list, const LLWString& wtext, const LLColor4 &defaultColor)
|
||||
{
|
||||
LLFastTimer ft(FTM_SYNTAX_COLORING);
|
||||
LL_RECORD_BLOCK_TIME(FTM_SYNTAX_COLORING);
|
||||
seg_list->clear();
|
||||
|
||||
if( wtext.empty() )
|
||||
|
||||
@@ -353,11 +353,11 @@ void LLLayoutStack::collapsePanel(LLPanel* panel, BOOL collapsed)
|
||||
mNeedsLayout = true;
|
||||
}
|
||||
|
||||
static LLFastTimer::DeclareTimer FTM_UPDATE_LAYOUT("Update LayoutStacks");
|
||||
static LLTrace::BlockTimerStatHandle FTM_UPDATE_LAYOUT("Update LayoutStacks");
|
||||
|
||||
void LLLayoutStack::updateLayout()
|
||||
{
|
||||
LLFastTimer ft(FTM_UPDATE_LAYOUT);
|
||||
LL_RECORD_BLOCK_TIME(FTM_UPDATE_LAYOUT);
|
||||
|
||||
if (!mNeedsLayout) return;
|
||||
|
||||
|
||||
@@ -384,7 +384,7 @@ void LLPanel::setBorderVisible(BOOL b)
|
||||
}
|
||||
}
|
||||
|
||||
LLFastTimer::DeclareTimer FTM_PANEL_CONSTRUCTION("Panel Construction");
|
||||
LLTrace::BlockTimerStatHandle FTM_PANEL_CONSTRUCTION("Panel Construction");
|
||||
// virtual
|
||||
LLXMLNodePtr LLPanel::getXML(bool save_children) const
|
||||
{
|
||||
@@ -440,7 +440,7 @@ LLView* LLPanel::fromXML(LLXMLNodePtr node, LLView* parent, LLUICtrlFactory *fac
|
||||
node->getAttributeString("name", name);
|
||||
|
||||
LLPanel* panelp = factory->createFactoryPanel(name);
|
||||
LLFastTimer _(FTM_PANEL_CONSTRUCTION);
|
||||
LL_RECORD_BLOCK_TIME(FTM_PANEL_CONSTRUCTION);
|
||||
// Fall back on a default panel, if there was no special factory.
|
||||
if (!panelp)
|
||||
{
|
||||
|
||||
@@ -3020,10 +3020,10 @@ void LLScrollListCtrl::setColumnHeadings(const LLSD& headings)
|
||||
"width"
|
||||
"dynamic_width"
|
||||
*/
|
||||
LLFastTimer::DeclareTimer FTM_ADD_SCROLLLIST_ELEMENT("Add Scroll List Item");
|
||||
LLTrace::BlockTimerStatHandle FTM_ADD_SCROLLLIST_ELEMENT("Add Scroll List Item");
|
||||
LLScrollListItem* LLScrollListCtrl::addElement(const LLSD& element, EAddPosition pos, void* userdata)
|
||||
{
|
||||
LLFastTimer _(FTM_ADD_SCROLLLIST_ELEMENT);
|
||||
LL_RECORD_BLOCK_TIME(FTM_ADD_SCROLLLIST_ELEMENT);
|
||||
LLScrollListItem::Params item_params;
|
||||
LLParamSDParser parser;
|
||||
parser.readSD(element, item_params);
|
||||
@@ -3033,14 +3033,14 @@ LLScrollListItem* LLScrollListCtrl::addElement(const LLSD& element, EAddPosition
|
||||
|
||||
LLScrollListItem* LLScrollListCtrl::addRow(const LLScrollListItem::Params& item_p, EAddPosition pos)
|
||||
{
|
||||
LLFastTimer _(FTM_ADD_SCROLLLIST_ELEMENT);
|
||||
LL_RECORD_BLOCK_TIME(FTM_ADD_SCROLLLIST_ELEMENT);
|
||||
LLScrollListItem *new_item = new LLScrollListItem(item_p);
|
||||
return addRow(new_item, item_p, pos);
|
||||
}
|
||||
|
||||
LLScrollListItem* LLScrollListCtrl::addRow(LLScrollListItem *new_item, const LLScrollListItem::Params& item_p, EAddPosition pos)
|
||||
{
|
||||
LLFastTimer _(FTM_ADD_SCROLLLIST_ELEMENT);
|
||||
LL_RECORD_BLOCK_TIME(FTM_ADD_SCROLLLIST_ELEMENT);
|
||||
if (!item_p.validateBlock() || !new_item) return NULL;
|
||||
new_item->setNumColumns(mColumns.size());
|
||||
|
||||
|
||||
@@ -4406,13 +4406,13 @@ void LLTextEditor::loadKeywords(const std::string& filename,
|
||||
}
|
||||
}
|
||||
|
||||
static LLFastTimer::DeclareTimer FTM_SYNTAX_HIGHLIGHTING("Syntax Highlighting");
|
||||
static LLFastTimer::DeclareTimer FTM_UPDATE_TEXT_SEGMENTS("Update Text Segments");
|
||||
static LLTrace::BlockTimerStatHandle FTM_SYNTAX_HIGHLIGHTING("Syntax Highlighting");
|
||||
static LLTrace::BlockTimerStatHandle FTM_UPDATE_TEXT_SEGMENTS("Update Text Segments");
|
||||
|
||||
void LLTextEditor::updateSegments()
|
||||
{
|
||||
{
|
||||
LLFastTimer ft(FTM_SYNTAX_HIGHLIGHTING);
|
||||
LL_RECORD_BLOCK_TIME(FTM_SYNTAX_HIGHLIGHTING);
|
||||
if (mKeywords.isLoaded())
|
||||
{
|
||||
// HACK: No non-ascii keywords for now
|
||||
@@ -4424,7 +4424,7 @@ void LLTextEditor::updateSegments()
|
||||
}
|
||||
}
|
||||
|
||||
LLFastTimer ft(FTM_UPDATE_TEXT_SEGMENTS);
|
||||
LL_RECORD_BLOCK_TIME(FTM_UPDATE_TEXT_SEGMENTS);
|
||||
// Make sure we have at least one segment
|
||||
if (mSegments.size() == 1 && mSegments[0]->getIsDefault())
|
||||
{
|
||||
|
||||
@@ -712,11 +712,11 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
LLFastTimer::DeclareTimer FTM_FOCUS_FIRST_ITEM("Focus First Item");
|
||||
LLTrace::BlockTimerStatHandle FTM_FOCUS_FIRST_ITEM("Focus First Item");
|
||||
|
||||
BOOL LLUICtrl::focusFirstItem(BOOL prefer_text_fields, BOOL focus_flash)
|
||||
{
|
||||
LLFastTimer _(FTM_FOCUS_FIRST_ITEM);
|
||||
LL_RECORD_BLOCK_TIME(FTM_FOCUS_FIRST_ITEM);
|
||||
// try to select default tab group child
|
||||
LLCtrlQuery query = getTabOrderQuery();
|
||||
// sort things such that the default tab group is at the front
|
||||
|
||||
@@ -71,9 +71,9 @@
|
||||
#include "lluiimage.h"
|
||||
#include "llviewborder.h"
|
||||
|
||||
LLFastTimer::DeclareTimer FTM_WIDGET_CONSTRUCTION("Widget Construction");
|
||||
LLFastTimer::DeclareTimer FTM_INIT_FROM_PARAMS("Widget InitFromParams");
|
||||
LLFastTimer::DeclareTimer FTM_WIDGET_SETUP("Widget Setup");
|
||||
LLTrace::BlockTimerStatHandle FTM_WIDGET_CONSTRUCTION("Widget Construction");
|
||||
LLTrace::BlockTimerStatHandle FTM_INIT_FROM_PARAMS("Widget InitFromParams");
|
||||
LLTrace::BlockTimerStatHandle FTM_WIDGET_SETUP("Widget Setup");
|
||||
|
||||
const char XML_HEADER[] = "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>\n";
|
||||
|
||||
|
||||
@@ -43,9 +43,9 @@
|
||||
class LLView;
|
||||
|
||||
|
||||
extern LLFastTimer::DeclareTimer FTM_WIDGET_SETUP;
|
||||
extern LLFastTimer::DeclareTimer FTM_WIDGET_CONSTRUCTION;
|
||||
extern LLFastTimer::DeclareTimer FTM_INIT_FROM_PARAMS;
|
||||
extern LLTrace::BlockTimerStatHandle FTM_WIDGET_SETUP;
|
||||
extern LLTrace::BlockTimerStatHandle FTM_WIDGET_CONSTRUCTION;
|
||||
extern LLTrace::BlockTimerStatHandle FTM_INIT_FROM_PARAMS;
|
||||
|
||||
// Build time optimization, generate this once in .cpp file
|
||||
#ifndef LLUICTRLFACTORY_CPP
|
||||
@@ -161,10 +161,10 @@ private:
|
||||
//return NULL;
|
||||
}
|
||||
|
||||
{ LLFastTimer _(FTM_WIDGET_CONSTRUCTION);
|
||||
{ LL_RECORD_BLOCK_TIME(FTM_WIDGET_CONSTRUCTION);
|
||||
widget = new T(params);
|
||||
}
|
||||
{ LLFastTimer _(FTM_INIT_FROM_PARAMS);
|
||||
{ LL_RECORD_BLOCK_TIME(FTM_INIT_FROM_PARAMS);
|
||||
widget->initFromParams(params);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "llsd.h"
|
||||
#include "lltrans.h"
|
||||
|
||||
LLFastTimer::DeclareTimer FTM_UI_STRING("UI String");
|
||||
LLTrace::BlockTimerStatHandle FTM_UI_STRING("UI String");
|
||||
|
||||
|
||||
LLUIString::LLUIString(const std::string& instring, const LLStringUtil::format_map_t& args)
|
||||
@@ -60,7 +60,7 @@ void LLUIString::setArgList(const LLStringUtil::format_map_t& args)
|
||||
|
||||
void LLUIString::setArgs(const LLSD& sd)
|
||||
{
|
||||
LLFastTimer timer(FTM_UI_STRING);
|
||||
LL_RECORD_BLOCK_TIME(FTM_UI_STRING);
|
||||
|
||||
if (!sd.isMap()) return;
|
||||
for(LLSD::map_const_iterator sd_it = sd.beginMap();
|
||||
@@ -123,7 +123,7 @@ void LLUIString::updateResult() const
|
||||
{
|
||||
mNeedsResult = false;
|
||||
|
||||
LLFastTimer timer(FTM_UI_STRING);
|
||||
LL_RECORD_BLOCK_TIME(FTM_UI_STRING);
|
||||
|
||||
// optimize for empty strings (don't attempt string replacement)
|
||||
if (mOrig.empty())
|
||||
|
||||
@@ -1601,11 +1601,11 @@ BOOL LLView::hasChild(const std::string& childname, BOOL recurse) const
|
||||
//-----------------------------------------------------------------------------
|
||||
// getChildView()
|
||||
//-----------------------------------------------------------------------------
|
||||
static LLFastTimer::DeclareTimer FTM_FIND_VIEWS("Find Widgets");
|
||||
static LLTrace::BlockTimerStatHandle FTM_FIND_VIEWS("Find Widgets");
|
||||
|
||||
LLView* LLView::getChildView(const std::string& name, BOOL recurse, BOOL create_if_missing) const
|
||||
{
|
||||
LLFastTimer ft(FTM_FIND_VIEWS);
|
||||
LL_RECORD_BLOCK_TIME(FTM_FIND_VIEWS);
|
||||
//richard: should we allow empty names?
|
||||
//if(name.empty())
|
||||
// return NULL;
|
||||
|
||||
@@ -679,12 +679,12 @@ LLXUIParser::LLXUIParser()
|
||||
}
|
||||
}
|
||||
|
||||
LLFastTimer::DeclareTimer FTM_PARSE_XUI("XUI Parsing");
|
||||
LLTrace::BlockTimerStatHandle FTM_PARSE_XUI("XUI Parsing");
|
||||
const LLXMLNodePtr DUMMY_NODE = new LLXMLNode();
|
||||
|
||||
void LLXUIParser::readXUI(LLXMLNodePtr node, LLInitParam::BaseBlock& block, const std::string& filename, bool silent)
|
||||
{
|
||||
LLFastTimer ft(FTM_PARSE_XUI);
|
||||
LL_RECORD_BLOCK_TIME(FTM_PARSE_XUI);
|
||||
mNameStack.clear();
|
||||
mRootNodeName = node->getName()->mString;
|
||||
mCurFileName = filename;
|
||||
@@ -1396,7 +1396,7 @@ LLSimpleXUIParser::~LLSimpleXUIParser()
|
||||
|
||||
bool LLSimpleXUIParser::readXUI(const std::string& filename, LLInitParam::BaseBlock& block, bool silent)
|
||||
{
|
||||
LLFastTimer ft(FTM_PARSE_XUI);
|
||||
LL_RECORD_BLOCK_TIME(FTM_PARSE_XUI);
|
||||
|
||||
mParser = XML_ParserCreate(NULL);
|
||||
XML_SetUserData(mParser, this);
|
||||
|
||||
Reference in New Issue
Block a user