llmemory.h cleanup. pulled llpointer, refcounter, smartpointer, singleton and safe handle out into their own headers. llmemory.h drags all those headers in for legacy support until everything else is cleaned up. getCurrentRSS() moved into LLMemory. getWorkingSetSize() added to LLMemory.
This commit is contained in:
@@ -220,7 +220,7 @@ void display_stats()
|
||||
F32 mem_log_freq = gSavedSettings.getF32("MemoryLogFrequency");
|
||||
if (mem_log_freq > 0.f && gRecentMemoryTime.getElapsedTimeF32() >= mem_log_freq)
|
||||
{
|
||||
gMemoryAllocated = getCurrentRSS();
|
||||
gMemoryAllocated = LLMemory::getCurrentRSS();
|
||||
U32 memory = (U32)(gMemoryAllocated / (1024*1024));
|
||||
llinfos << llformat("MEMORY: %d MB", memory) << llendl;
|
||||
gRecentMemoryTime.reset();
|
||||
|
||||
Reference in New Issue
Block a user