mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-08-02 03:16:11 -04:00
memory manager cleanup and removal
This commit is contained in:
@@ -197,7 +197,6 @@ void DatabaseProcess::run(void)
|
||||
static bool shouldSleep = ConfigServerDatabase::getShouldSleep();
|
||||
bool idle=false;
|
||||
int loopcount=0;
|
||||
float nextMemoryReportTime=0;
|
||||
float nextQueryCountTime=0;
|
||||
|
||||
LOG("ServerStartup",("DatabaseServer starting"));
|
||||
@@ -240,16 +239,6 @@ void DatabaseProcess::run(void)
|
||||
PROFILER_AUTO_BLOCK_DEFINE("NetworkHandler::update");
|
||||
NetworkHandler::update();
|
||||
}
|
||||
nextMemoryReportTime-=updateTime;
|
||||
if (nextMemoryReportTime < 0)
|
||||
{
|
||||
#ifndef _WIN32
|
||||
LOG("DatabaseMemory",("Bytes used: %lu (VmSize %dK) Open allocations: %d Total Allocations %d",MemoryManager::getCurrentNumberOfBytesAllocated(static_cast<int>(Os::getProcessId())),MemoryManager::getProcessVmSizeKBytes(static_cast<int>(Os::getProcessId())),MemoryManager::getCurrentNumberOfAllocations(),MemoryManagerNamespace::ms_allocateCalls));
|
||||
#else
|
||||
LOG("DatabaseMemory",("Bytes used: %lu Open allocations: %d Total Allocations %d",MemoryManager::getCurrentNumberOfBytesAllocated(static_cast<int>(Os::getProcessId())),MemoryManager::getCurrentNumberOfAllocations(),MemoryManagerNamespace::ms_allocateCalls));
|
||||
#endif
|
||||
nextMemoryReportTime=10;
|
||||
}
|
||||
|
||||
nextQueryCountTime-=updateTime;
|
||||
if (nextQueryCountTime < 0)
|
||||
|
||||
Reference in New Issue
Block a user