MemoryUsage DataStoreBase::getMemoryUsage() const { MemStats stats = getMemStats(); MemoryUsage usage; usage.setAllocatedBytes(stats._allocBytes); usage.setUsedBytes(stats._usedBytes); usage.setDeadBytes(stats._deadBytes); usage.setAllocatedBytesOnHold(stats._holdBytes); return usage; }