diff options
| author | Xiaohong Bao <bao@lindenlab.com> | 2013-04-11 15:25:35 -0600 | 
|---|---|---|
| committer | Xiaohong Bao <bao@lindenlab.com> | 2013-04-11 15:25:35 -0600 | 
| commit | c05fa390dc57b072da4b69b4e08743fd62bf4ce5 (patch) | |
| tree | ff92ba26590a7542950e8b024b240cfee5a2c64c /indra/newview | |
| parent | 1a820f8df90a21a8614b79f3dc973bb7dc903def (diff) | |
add LLTrace::MemTrackable to LLVOCachePartition
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llvocache.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llvocache.h | 4 | 
2 files changed, 5 insertions, 1 deletions
| diff --git a/indra/newview/llvocache.cpp b/indra/newview/llvocache.cpp index caa87eb1eb..1dd149631a 100644 --- a/indra/newview/llvocache.cpp +++ b/indra/newview/llvocache.cpp @@ -34,6 +34,8 @@  #include "llviewerregion.h"  #include "pipeline.h" +LLTrace::MemStatHandle	LLVOCachePartition::sMemStat("LLVOCachePartition"); +  BOOL check_read(LLAPRFile* apr_file, void* src, S32 n_bytes)   {  	return apr_file->read(src, n_bytes) == n_bytes ; diff --git a/indra/newview/llvocache.h b/indra/newview/llvocache.h index 5f2dd63051..4b775a4288 100644 --- a/indra/newview/llvocache.h +++ b/indra/newview/llvocache.h @@ -147,7 +147,7 @@ protected:  	BOOL                        mTouched; //if set, this entry is valid, otherwise it is invalid.  }; -class LLVOCachePartition : public LLViewerOctreePartition +class LLVOCachePartition : public LLViewerOctreePartition, public LLTrace::MemTrackable<LLVOCachePartition>  {  public:  	LLVOCachePartition(LLViewerRegion* regionp); @@ -155,6 +155,8 @@ public:  	void addEntry(LLViewerOctreeEntry* entry);  	void removeEntry(LLViewerOctreeEntry* entry);  	/*virtual*/ S32 cull(LLCamera &camera); + +	static	LLTrace::MemStatHandle	sMemStat;  };  // | 
