File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -2682,6 +2682,7 @@ bool LLInventoryModel::loadSkeleton(
2682
2682
LL_PROFILE_ZONE_SCOPED;
2683
2683
LL_DEBUGS (LOG_INV) << " importing inventory skeleton for " << owner_id << LL_ENDL;
2684
2684
2685
+ LLTimer timer;
2685
2686
typedef std::set<LLPointer<LLViewerInventoryCategory>, InventoryIDPtrLess> cat_set_t ;
2686
2687
cat_set_t temp_cats;
2687
2688
bool rv = true ;
@@ -2966,7 +2967,8 @@ bool LLInventoryModel::loadSkeleton(
2966
2967
}
2967
2968
2968
2969
LL_INFOS (LOG_INV) << " Successfully loaded " << cached_category_count
2969
- << " categories and " << cached_item_count << " items from cache."
2970
+ << " categories and " << cached_item_count << " items from cache"
2971
+ << " after " << timer.getElapsedTimeF32 () << " seconds."
2970
2972
<< LL_ENDL;
2971
2973
2972
2974
return rv;
Original file line number Diff line number Diff line change @@ -364,9 +364,28 @@ void LLInventoryPanel::initializeViewBuilding()
364
364
if (mInventory ->isInventoryUsable ()
365
365
&& LLStartUp::getStartupState () <= STATE_WEARABLES_WAIT)
366
366
{
367
+ LLTimer timer;
367
368
// Usually this happens on login, so we have less time constraits, but too long and we can cause a disconnect
368
369
const F64 max_time = 20 .f ;
369
370
initializeViews (max_time);
371
+
372
+ if (mViewsInitialized == VIEWS_INITIALIZED)
373
+ {
374
+ LL_INFOS (" Inventory" )
375
+ << " Fully initialized inventory panel " << getName ()
376
+ << " with " << (S32)mItemMap .size ()
377
+ << " views in " << timer.getElapsedTimeF32 () << " seconds."
378
+ << LL_ENDL;
379
+ }
380
+ else
381
+ {
382
+ LL_INFOS (" Inventory" )
383
+ << " Partially initialized inventory panel " << getName ()
384
+ << " with " << (S32)mItemMap .size ()
385
+ << " views in " << timer.getElapsedTimeF32 ()
386
+ << " seconds. Pending known views: " << (S32)mBuildViewsQueue .size ()
387
+ << LL_ENDL;
388
+ }
370
389
}
371
390
else
372
391
{
You can’t perform that action at this time.
0 commit comments