add LLTrace::MemTrackable to LLVOCachePartition

master
Xiaohong Bao 2013-04-11 15:25:35 -06:00
parent 1a820f8df9
commit c05fa390dc
2 changed files with 5 additions and 1 deletions

View File

@ -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 ;

View File

@ -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;
};
//