new fasttimers, including ui.
This commit is contained in:
@@ -2716,11 +2716,13 @@ void LLFolderView::checkTreeResortForModelChanged()
|
||||
}
|
||||
}
|
||||
|
||||
static LLFastTimer::DeclareTimer FTM_SORT("Sort Inventory");
|
||||
|
||||
void LLFolderView::setSortOrder(U32 order)
|
||||
{
|
||||
if (order != mSortOrder)
|
||||
{
|
||||
LLFastTimer t(LLFastTimer::FTM_SORT);
|
||||
LLFastTimer t(FTM_SORT);
|
||||
mSortOrder = order;
|
||||
|
||||
for (folders_t::iterator iter = mFolders.begin();
|
||||
@@ -2841,10 +2843,12 @@ void LLFolderView::setOpenArrangeRecursively(BOOL openitem, ERecurseType recurse
|
||||
mIsOpen = TRUE;
|
||||
}
|
||||
|
||||
static LLFastTimer::DeclareTimer FTM_ARRANGE("Arrange");
|
||||
|
||||
// This view grows and shinks to enclose all of its children items and folders.
|
||||
S32 LLFolderView::arrange( S32* unused_width, S32* unused_height, S32 filter_generation )
|
||||
{
|
||||
LLFastTimer t2(LLFastTimer::FTM_ARRANGE);
|
||||
LLFastTimer t2(FTM_ARRANGE);
|
||||
|
||||
filter_generation = mFilter.getMinRequiredGeneration();
|
||||
mMinWidth = 0;
|
||||
@@ -2934,9 +2938,11 @@ const std::string LLFolderView::getFilterSubString(BOOL trim)
|
||||
return mFilter.getFilterSubString(trim);
|
||||
}
|
||||
|
||||
static LLFastTimer::DeclareTimer FTM_FILTER("Filter Inventory");
|
||||
|
||||
void LLFolderView::filter( LLInventoryFilter& filter )
|
||||
{
|
||||
LLFastTimer t2(LLFastTimer::FTM_FILTER);
|
||||
LLFastTimer t2(FTM_FILTER);
|
||||
filter.setFilterCount(llclamp(gSavedSettings.getS32("FilterItemsPerFrame"), 1, 5000));
|
||||
|
||||
if (getCompletedFilterGeneration() < filter.getCurrentGeneration())
|
||||
@@ -3109,8 +3115,10 @@ void LLFolderView::extendSelection(LLFolderViewItem* selection, LLFolderViewItem
|
||||
mSignalSelectCallback = SIGNAL_KEYBOARD_FOCUS;
|
||||
}
|
||||
|
||||
static LLFastTimer::DeclareTimer FTM_SANITIZE_SELECTION("Sanitize Selection");
|
||||
void LLFolderView::sanitizeSelection()
|
||||
{
|
||||
LLFastTimer _(FTM_SANITIZE_SELECTION);
|
||||
// store off current item in case it is automatically deselected
|
||||
// and we want to preserve context
|
||||
LLFolderViewItem* original_selected_item = getCurSelectedItem();
|
||||
@@ -4361,8 +4369,10 @@ void LLFolderView::removeItemID(const LLUUID& id)
|
||||
mItemMap.erase(id);
|
||||
}
|
||||
|
||||
LLFastTimer::DeclareTimer FTM_GET_ITEM_BY_ID("Get FolderViewItem by ID");
|
||||
LLFolderViewItem* LLFolderView::getItemByID(const LLUUID& id)
|
||||
{
|
||||
LLFastTimer _(FTM_GET_ITEM_BY_ID);
|
||||
if (id.isNull())
|
||||
{
|
||||
return this;
|
||||
@@ -4379,10 +4389,13 @@ LLFolderViewItem* LLFolderView::getItemByID(const LLUUID& id)
|
||||
}
|
||||
|
||||
|
||||
|
||||
static LLFastTimer::DeclareTimer FTM_AUTO_SELECT("Open and Select");
|
||||
static LLFastTimer::DeclareTimer FTM_INVENTORY("Inventory");
|
||||
// Main idle routine
|
||||
void LLFolderView::doIdle()
|
||||
{
|
||||
LLFastTimer t2(LLFastTimer::FTM_INVENTORY);
|
||||
LLFastTimer t2(FTM_INVENTORY);
|
||||
|
||||
BOOL debug_filters = gSavedSettings.getBOOL("DebugInventoryFilters");
|
||||
if (debug_filters != getDebugFilters())
|
||||
@@ -4407,7 +4420,7 @@ void LLFolderView::doIdle()
|
||||
// potentially changed
|
||||
if (mNeedsAutoSelect)
|
||||
{
|
||||
LLFastTimer t3(LLFastTimer::FTM_AUTO_SELECT);
|
||||
LLFastTimer t3(FTM_AUTO_SELECT);
|
||||
// select new item only if a filtered item not currently selected
|
||||
LLFolderViewItem* selected_itemp = mSelectedItems.empty() ? NULL : mSelectedItems.back();
|
||||
if (selected_itemp != NULL && sFolderViewItems.count(selected_itemp) == 0)
|
||||
|
||||
Reference in New Issue
Block a user