Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

void LVCMem_BlockAllocator::CalcStatistics ( SAPDB_ULong &  BytesUsed,
SAPDB_ULong &  MaxBytesUsed,
SAPDB_ULong &  BytesControlled 
) [virtual]

Outputs statistics about the memory usage of the allocator.

Parameters:
BytesUsed [out] The number of bytes used by this allocater.
BytesControlled [out] The number of bytes controlled by this allocator. The default implementation returns GetInvalidSize() for both values.
Returns:
value none

Reimplemented from SAPDBMem_IAllocatorInfo.

Definition at line 134 of file LVCMem_BlockAllocator.cpp.

References SAPDBMem_IBlockAllocator::GetBlockSize(), m_allocated, and m_allocator.

{
  BytesUsed       = m_allocated * m_allocator.GetBlockSize();
  MaxBytesUsed    =
  BytesControlled = BytesUsed;
}


Generated by  Doxygen 1.6.0   Back to index