integrated attributes into the placement new

This commit is contained in:
Lee Thomason
2012-02-06 18:18:11 -08:00
parent 455c9d4dd0
commit 43f59307cc
3 changed files with 25 additions and 28 deletions

View File

@@ -206,8 +206,8 @@ public:
root = chunk;
}
void Trace( const char* name ) {
printf( "Mempool %s watermark=%d current=%d size=%d nAlloc=%d blocks=%d\n",
name, maxAllocs, currentAllocs, SIZE, nAllocs, blockPtrs.Size() );
printf( "Mempool %s watermark=%d [%dk] current=%d size=%d nAlloc=%d blocks=%d\n",
name, maxAllocs, maxAllocs*SIZE/1024, currentAllocs, SIZE, nAllocs, blockPtrs.Size() );
}
private:
@@ -419,6 +419,7 @@ private:
StrPair name;
StrPair value;
XMLAttribute* next;
MemPool* memPool;
};