RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System::TSmallBlockTypeState Record

System::TSmallBlockTypeState holds statistics about a small memory block.

Pascal
TSmallBlockTypeState = packed record
  InternalBlockSize: Cardinal;
  UseableBlockSize: Cardinal;
  AllocatedBlockCount: Cardinal;
  ReservedAddressSpace: Cardinal;
end;
C++
struct TSmallBlockTypeState {
  Cardinal InternalBlockSize;
  Cardinal UseableBlockSize;
  Cardinal AllocatedBlockCount;
  Cardinal ReservedAddressSpace;
};

GetMemoryManagerState returns a structure containing memory usage statistics for each block type - small, medium and large blocks. It returns this data in a System::TMemoryManagerState record. Within that record is held a System::TSmallBlockTypeStates field - an array of System::TSmallBlockTypeState records. Each System::TSmallBlockTypeState record holds the following information :

Field 
Meaning 
InternalBlockSize  
Actual memory allocated to each small memory block - at least 4 bytes of which are not available in the UseableBlockSize.  
UseableBlockSize  
The useable size of each allocated small memory block.  
AllocatedBlockCount  
The number of small memory blocks allocated of the given InternalBlockSize.  
ReservedAddressSpace  
The amount memory reserved for this group of small memory blocks.  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!