System.TMemoryManagerState

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

  TMemoryManagerState = packed record
    {Small block type states}
    SmallBlockTypeStates: TSmallBlockTypeStates;
    {Medium block stats}
    AllocatedMediumBlockCount: Cardinal;
    TotalAllocatedMediumBlockSize: NativeUInt;
    ReservedMediumBlockAddressSpace: NativeUInt;
    {Large block stats}
    AllocatedLargeBlockCount: Cardinal;
    TotalAllocatedLargeBlockSize: NativeUInt;
    ReservedLargeBlockAddressSpace: NativeUInt;
  end;

C++

struct DECLSPEC_DRECORD TMemoryManagerState
{
public:
    TSmallBlockTypeStates SmallBlockTypeStates;
    unsigned AllocatedMediumBlockCount;
    NativeUInt TotalAllocatedMediumBlockSize;
    NativeUInt ReservedMediumBlockAddressSpace;
    unsigned AllocatedLargeBlockCount;
    NativeUInt TotalAllocatedLargeBlockSize;
    NativeUInt ReservedLargeBlockAddressSpace;
};

Properties

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

Description

TMemoryManagerState holds statistics about memory allocations.

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. AllocMem and GetMemory can be used to allocate memory blocks. The record holds the following information :



Field Meaning

SmallBlockTypeStates

An array of small memory block information records.

AllocatedMediumBlockCount

The number of medium sized memory blocks (blocks less than 264,749 bytes in size).

TotalAllocatedMediumBlockSize

The total number of bytes oiccupied by the medium memory blocks.

ReservedMediumBlockAddressSpace

The amount of memory reserved for medium memory blocks.

AllocatedLargeBlockCount

The number of large sized memory blocks (blocks greater than 264,748 bytes in size).

TotalAllocatedLargeBlockSize

The total number of bytes oiccupied by the large memory blocks.

ReservedLargeBlockAddressSpace

The amount of memory reserved for large memory blocks.



See Also