System.TSmallBlockTypeState

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

  TSmallBlockTypeState = packed record
    {The internal size of the block type}
    InternalBlockSize: Cardinal;
    {Useable block size: The number of non-reserved bytes inside the block.}
    UseableBlockSize: Cardinal;
    {The number of allocated blocks}
    AllocatedBlockCount: NativeUInt;
    {The total address space reserved for this block type (both allocated and
     free blocks)}
    ReservedAddressSpace: NativeUInt;
  end;

C++

struct DECLSPEC_DRECORD TSmallBlockTypeState
{
public:
    unsigned InternalBlockSize;
    unsigned UseableBlockSize;
    NativeUInt AllocatedBlockCount;
    NativeUInt ReservedAddressSpace;
};

Properties

Type Visibility Source Unit Parent
record
struct
public
System.pas
System.hpp
System System

Description

TSmallBlockTypeState holds statistics about a small memory block.

GetMemoryManagerState returns a structure containing memory usage statistics for each block type-- small, medium, and large blocks. It returns this data in a TMemoryManagerState record. Within that record is held a TSmallBlockTypeStates field - an array of TSmallBlockTypeState records. Each 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 usable size of each allocated small memory block.

AllocatedBlockCount

The number of small memory blocks of the given InternalBlockSize that are allocated.

ReservedAddressSpace

The amount of memory reserved for this group of small memory blocks.



See Also