diff options
| author | Richard Linden <none@none> | 2013-10-01 13:47:15 -0700 | 
|---|---|---|
| committer | Richard Linden <none@none> | 2013-10-01 13:47:15 -0700 | 
| commit | 9e486f6c6abbee6cb41ba9a6271d8a025ad924ef (patch) | |
| tree | e6a8d1de4fc9fa4e8eff575d4ab430f7a72a4170 /indra/newview | |
| parent | 1aa9ad575488eb1f808f3bfcb5f0ffa1e8e95591 (diff) | |
| parent | 12f0f8cb72f789e21b01b45063dcc5f1f5292087 (diff) | |
Automated merge with http://bitbucket.org/lindenlab/viewer-interesting
Diffstat (limited to 'indra/newview')
| -rwxr-xr-x | indra/newview/lldrawable.cpp | 5 | ||||
| -rwxr-xr-x | indra/newview/lldrawable.h | 4 | ||||
| -rwxr-xr-x | indra/newview/llviewerobject.cpp | 3 | ||||
| -rwxr-xr-x | indra/newview/llviewerwindow.cpp | 3 | ||||
| -rwxr-xr-x | indra/newview/llvocache.cpp | 10 | ||||
| -rwxr-xr-x | indra/newview/skins/default/xui/en/floater_stats.xml | 37 | 
6 files changed, 40 insertions, 22 deletions
| diff --git a/indra/newview/lldrawable.cpp b/indra/newview/lldrawable.cpp index 5baebab5a3..2890d3f61c 100755 --- a/indra/newview/lldrawable.cpp +++ b/indra/newview/lldrawable.cpp @@ -90,8 +90,9 @@ void LLDrawable::incrementVisible()  }  LLDrawable::LLDrawable(LLViewerObject *vobj, bool new_entry) -	: LLViewerOctreeEntryData(LLViewerOctreeEntry::LLDRAWABLE), -	  mVObjp(vobj) +:	LLViewerOctreeEntryData(LLViewerOctreeEntry::LLDRAWABLE), +	LLTrace::MemTrackable<LLDrawable, 16>("LLDrawable"), +	mVObjp(vobj)  {  	init(new_entry);   } diff --git a/indra/newview/lldrawable.h b/indra/newview/lldrawable.h index a0ac417b24..067cee6838 100755 --- a/indra/newview/lldrawable.h +++ b/indra/newview/lldrawable.h @@ -64,7 +64,9 @@ class LLDrawable  	public LLTrace::MemTrackable<LLDrawable, 16>  {  public: -	LLDrawable(const LLDrawable& rhs) : LLViewerOctreeEntryData(rhs) +	LLDrawable(const LLDrawable& rhs)  +	:	LLTrace::MemTrackable<LLDrawable, 16>("LLDrawable"), +		LLViewerOctreeEntryData(rhs)  	{  		*this = rhs;  	} diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index 394b11b759..e65f99c452 100755 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -206,7 +206,8 @@ LLViewerObject *LLViewerObject::createObject(const LLUUID &id, const LLPCode pco  }  LLViewerObject::LLViewerObject(const LLUUID &id, const LLPCode pcode, LLViewerRegion *regionp, BOOL is_global) -:	LLPrimitive(), +:	LLTrace::MemTrackable<LLViewerObject>("LLViewerObject"), +	LLPrimitive(),  	mChildList(),  	mID(id),  	mLocalID(0), diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp index 34b0f450ab..ecb1fd696a 100755 --- a/indra/newview/llviewerwindow.cpp +++ b/indra/newview/llviewerwindow.cpp @@ -287,6 +287,8 @@ public:  // LLDebugText  // +static LLTrace::TimeBlock FTM_DISPLAY_DEBUG_TEXT("Display Debug Text"); +  class LLDebugText  {  private: @@ -799,6 +801,7 @@ public:  	void draw()  	{ +		LL_RECORD_BLOCK_TIME(FTM_DISPLAY_DEBUG_TEXT);  		for (line_list_t::iterator iter = mLineList.begin();  			 iter != mLineList.end(); ++iter)  		{ diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index 7ba0c31ffc..01666778b1 100755 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -56,7 +56,8 @@ BOOL check_write(LLAPRFile* apr_file, void* src, S32 n_bytes)  //---------------------------------------------------------------------------  LLVOCacheEntry::LLVOCacheEntry(U32 local_id, U32 crc, LLDataPackerBinaryBuffer &dp) -	: LLViewerOctreeEntryData(LLViewerOctreeEntry::LLVOCACHEENTRY), +:	LLTrace::MemTrackable<LLVOCacheEntry, 16>("LLVOCacheEntry"), +	LLViewerOctreeEntryData(LLViewerOctreeEntry::LLVOCACHEENTRY),  	mLocalID(local_id),  	mCRC(crc),  	mUpdateFlags(-1), @@ -74,7 +75,8 @@ LLVOCacheEntry::LLVOCacheEntry(U32 local_id, U32 crc, LLDataPackerBinaryBuffer &  }  LLVOCacheEntry::LLVOCacheEntry() -	: LLViewerOctreeEntryData(LLViewerOctreeEntry::LLVOCACHEENTRY), +:	LLTrace::MemTrackable<LLVOCacheEntry, 16>("LLVOCacheEntry"), +	LLViewerOctreeEntryData(LLViewerOctreeEntry::LLVOCACHEENTRY),  	mLocalID(0),  	mCRC(0),  	mUpdateFlags(-1), @@ -91,7 +93,8 @@ LLVOCacheEntry::LLVOCacheEntry()  }  LLVOCacheEntry::LLVOCacheEntry(LLAPRFile* apr_file) -	: LLViewerOctreeEntryData(LLViewerOctreeEntry::LLVOCACHEENTRY),  +:	LLTrace::MemTrackable<LLVOCacheEntry, 16>("LLVOCacheEntry"), +	LLViewerOctreeEntryData(LLViewerOctreeEntry::LLVOCACHEENTRY),   	mBuffer(NULL),  	mUpdateFlags(-1),  	mState(INACTIVE), @@ -471,6 +474,7 @@ void LLVOCacheEntry::updateParentBoundingInfo(const LLVOCacheEntry* child)  //LLVOCachePartition  //-------------------------------------------------------------------  LLVOCachePartition::LLVOCachePartition(LLViewerRegion* regionp) +:	LLTrace::MemTrackable<LLVOCachePartition>("LLVOCachePartition")  {  	mLODPeriod = 16;  	mRegionp = regionp; diff --git a/indra/newview/skins/default/xui/en/floater_stats.xml b/indra/newview/skins/default/xui/en/floater_stats.xml index f0a464dfc9..d4decf383d 100755 --- a/indra/newview/skins/default/xui/en/floater_stats.xml +++ b/indra/newview/skins/default/xui/en/floater_stats.xml @@ -111,25 +111,32 @@  			 <stat_view name="memory"  									label="Memory Usage">  				 <stat_bar name="LLView" -                    label="LLView Memory" -                    stat="class LLView" -                    show_history="true"/> +                    label="UI" +                    stat="LLView"/> +				 <stat_bar name="LLFontFreetype" +                    label="Fonts" +                    stat="LLFontFreetype"/> +				 <stat_bar name="LLInventoryObject" +                    label="Inventory" +                    stat="LLInventoryObject"/>  				 <stat_bar name="LLViewerObject" -                    label="LLViewerObject Memory" -                    stat="class LLViewerObject" -                    show_history="true"/> +                    label="Viewer Objects" +                    stat="LLViewerObject"/>  					<stat_bar name="LLVOCacheEntry" -                    label="LLVOCacheEntry Memory" -                    stat="class LLVOCacheEntry" -                    show_history="true"/> +                    label="Viewer Object Cache" +                    stat="LLVOCacheEntry"/>  				 <stat_bar name="LLDrawable" -                    label="LLDrawable Memory" -                    stat="class LLDrawable" -                    show_history="true"/> +                    label="Drawables" +                    stat="LLDrawable"/>  				 <stat_bar name="LLImage" -                    label="LLImage Memory" -                    stat="class LLImageBase" -                    show_history="true"/> +                    label="Image Data" +                    stat="LLImage"/> +				 <stat_bar name="LLImageGL" +                    label="GL Image Data" +                    stat="LLImageGL"/> +				 <stat_bar name="LLVertexBuffer" +                    label="Vertex Buffers" +                    stat="LLVertexBuffer"/>  			 </stat_view>          <stat_view name="network"                     label="Network" | 
