#3969 Log time it takes to create inventory from cache
parent
84c62de95b
commit
329e71a7d9
|
|
@ -2690,6 +2690,7 @@ bool LLInventoryModel::loadSkeleton(
|
|||
LL_PROFILE_ZONE_SCOPED;
|
||||
LL_DEBUGS(LOG_INV) << "importing inventory skeleton for " << owner_id << LL_ENDL;
|
||||
|
||||
LLTimer timer;
|
||||
typedef std::set<LLPointer<LLViewerInventoryCategory>, InventoryIDPtrLess> cat_set_t;
|
||||
cat_set_t temp_cats;
|
||||
bool rv = true;
|
||||
|
|
@ -2975,7 +2976,8 @@ bool LLInventoryModel::loadSkeleton(
|
|||
}
|
||||
|
||||
LL_INFOS(LOG_INV) << "Successfully loaded " << cached_category_count
|
||||
<< " categories and " << cached_item_count << " items from cache."
|
||||
<< " categories and " << cached_item_count << " items from cache"
|
||||
<< " after " << timer.getElapsedTimeF32() << " seconds."
|
||||
<< LL_ENDL;
|
||||
|
||||
return rv;
|
||||
|
|
|
|||
|
|
@ -366,9 +366,28 @@ void LLInventoryPanel::initializeViewBuilding()
|
|||
if (mInventory->isInventoryUsable()
|
||||
&& LLStartUp::getStartupState() <= STATE_WEARABLES_WAIT)
|
||||
{
|
||||
LLTimer timer;
|
||||
// Usually this happens on login, so we have less time constraits, but too long and we can cause a disconnect
|
||||
const F64 max_time = 20.f;
|
||||
initializeViews(max_time);
|
||||
|
||||
if (mViewsInitialized == VIEWS_INITIALIZED)
|
||||
{
|
||||
LL_INFOS("Inventory")
|
||||
<< "Fully initialized inventory panel " << getName()
|
||||
<< " with " << (S32)mItemMap.size()
|
||||
<< " views in " << timer.getElapsedTimeF32() << " seconds."
|
||||
<< LL_ENDL;
|
||||
}
|
||||
else
|
||||
{
|
||||
LL_INFOS("Inventory")
|
||||
<< "Partially initialized inventory panel " << getName()
|
||||
<< " with " << (S32)mItemMap.size()
|
||||
<< " views in " << timer.getElapsedTimeF32()
|
||||
<< " seconds. Pending known views: " << (S32)mBuildViewsQueue.size()
|
||||
<< LL_ENDL;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue