integrated attributes into the placement new
diff --git a/tinyxml2.h b/tinyxml2.h
index f024647..2a6e344 100644
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -206,8 +206,8 @@
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 @@
StrPair name;
StrPair value;
XMLAttribute* next;
+ MemPool* memPool;
};